126th program input & output

Input : Enter how many line you need to make pyramid = 4
Output :-


                          1
              1         2        1
 1          2         3        2       1 /////////////////////////////////////////////////////////////////////////////////////////////
Input : Enter how many line you need to make pyramid = 2
Output :-


                          1
              1         2        1
/////////////////////////////////////////////////////////////////////////////////////////////