1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//two steps// #include<stdio.h> int main (void) { int i, n=3; for(i=1; i<=3; i++) { printf("Row %d :",i); for(n=3; n>=1; n--) printf("%d ",n); printf("\n"); } return 0; }
1 2 3
Row 1 :3 2 1 Row 2 :3 2 1 Row 3 :3 2 1