write the programing for following

1
2 3
4 5 6
7 8 9 10

10 9 8 7
6 5 4
3 2
1

1
1 2
1 2 3
1 2 3 4

1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4

write the answer for output of above C programs