#include
void main()
{
int n, c, k;
clrscr();
printf("Enter number of rows::");
scanf("%d",&n);
for ( c = 1 ; c <= n ; c++ )
{
for( k = 1 ; k <= c ; k++ )
printf("%d", c);
printf("\n");
}
getch();
return 0;
}
----------------------------------
output:-
Enter number of rows::8
1
22
333
4444
55555
666666
7777777
88888888
No comments:
Post a Comment