Get the following output:
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
#include <stdio.h> int main() { int i,j; for(i=5;i>=1;i=i-1) { for(j=1;j<=i;j=j+1) { printf("%d ",j); } printf("\n"); } return 0; }
Get the following output:
2 4 6 8 10
2 4 6 8
2 4 6
2 4
2
#include <stdio.h> int main() { int i,j; for(i=5;i>=1;i=i-1) { for(j=1;j<=i;j=j+1) { printf("%d ",j*2); } printf("\n"); } return 0; }
Get the following output:
1 3 5 7 9
1 3 5 7
1 3 5
1 3
1
#include <stdio.h> int main() { int i,j; for(i=5;i>=1;i=i-1) { for(j=1;j<=i;j=j+1) { printf("%d ",j*2-1); } printf("\n"); } return 0; }