#include<stdio.h>
#include<conio.h>
void main()
{ clrscr();
int i,j,n,m,a;
a=0;
scanf("%d",&n);
for(i=1;i<=n;i++)
{ a++;
for(j=1;j<=i;j++)
printf("
%d",a);
printf("\n"); }
getch();
}
OUTPUT (If limit=5)
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
No comments:
Post a Comment
Please comment bellow. Share your knowledge