[My site ]
Main » 2013 » December » 12 » C Programming Sheet - 7 - for
11:31 PM
C Programming Sheet - 7 - for
#include"stdio.h"
int main(void){
int n, i, j;
printf("enter n : ");
scanf("%d", &n);
for(i=1;i<=n;i++){
for(j=1;j<=i;j++){
printf("%d", (n+1)-j);
}
printf("\n");
}
getch();
return 0;
}
Category: C Programming - 1 | Views: 309 | Added by: ahansaary | Rating: 0.0/0
Total comments: 0
Only registered users can add comments.
[ Sign Up | Login ]