#include <iostream>
using namespace std;
int main (void)
{
    int i,j;
    freopen("out.txt","w",stdout);
    for(i=1;i<=6;i++)
    {
      for(j=6;j>=i;j--)
      cout<< 7-j;
      cout<< "\n";
    }
}
The Output is Given Below:
123456 12345 1234 123 12 1
 
0 comments:
Post a Comment