122th program input & output

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


             A
       B          B
 C          C        C
      B           B
            A

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



             A
       B          B
            A

/////////////////////////////////////////////////////////////////////////////////////////////