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;
}
|
|
Total comments: 0 | |