127th program input & output

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

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

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