C program to print the following pattern : 1 2 6 3 7 10 4 8 11 13 5 9 12 14 15

C program to print the following pattern :


1
2 6
3 7 10
4 8 11 13
5 9 12 14 15
Solution: