C program to print the following pattern : 1 2 2 3 3 4 4 3 3 2 2 1

C program to print the following pattern :


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

Solution: