123th program input & output

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


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


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