Q:
1
34
567
#include
#include
void main()
{
int i,j,n,c=1;
clrscr();
printf("Enter value of n");
scanf("%d",&n);
for(j=1;j<=n;j++) { for(i=1;i<=j;i++) { printf("%d ",c); c++; } printf("\n"); c++; } getch(); }
This blog is for the struggling programmers who need assitance..
No comments:
Post a Comment