PP 2
PP 2
Input: n = 4
Output:
A
ABC
ABCDE
ABCDEFG
Input: n = 4
Output:
A
BAB
CBABC
DCBABCD
ABCDEFG
ABC EFG
AB FG
A G
Input: n = 4
Output:
1234321
123 321
12 21
1 1
* *
* *
* *
Sample Output :
* *
* *
* *
* *
* *
1
2 2
3 3
4 4
Output :
*
***
* * *
* * *
* * *
***********
* * *
* * *
* * *
***
*
* *
** **
*** ***
*******
*******
*** ***
** **
* *
*******
*** ***
** **
* *
** **
*** ***
*******
Note:- Please try to invest time doing the assignments which are necessary to build a strong
foundation. Do not directly Copy Paste using Google or ChatGPT. Please use your brain .