#include <iostream>
using namespace std;
int main (void)
{
int i,j;
freopen("out.txt","w",stdout);
for(i=1;i<=6;i++)
{
for(j=1;j<=i;j++)
cout<< i;
cout<< "\n";
}
}
The Output is Given Below:
1 22 333 4444 55555 666666
0 comments:
Post a Comment