Shape:
123456
12345
1234
123
12
1
Input:
123456
12345
1234
123
12
1
Input:
1 2 3 4 5 6 7 8 9 10 11 12 13 | #include<stdio.h> int main() { int i,j; for( i=6;i>=1;i--){ for( j=1;j<=i;j++) { printf("%d",j); } printf("\n"); } return 0; } |
No comments:
Post a Comment