Pattern-1
Submissions: 2608   Accuracy:

36.81%

  Difficulty: Basic   Marks: 1

Pattern would look like this if, N=6
 ABCDEF
 G$$$$H
 I$$$$J
 K$$$$L
 M$$$$N
 OPQRST

Input:
First line consists of T test cases. Only line of every test case consists of an integer N.

Output:
Print the following pattern.

Constraints:
1<=T<=6
1<=N<=6

Example:
Input:

1
6
Output:
ABCDEF
G$$$$H
I$$$$J
K$$$$L
M$$$$N 
OPQRST

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Prashant Shukla
Author: MITan5


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.