C program to print pyramid

C program to print pyramid


Input:

Enter n:
5

Output:

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

Implementation: