#t45. 画正方形
画正方形
Draw a Square
Problem Description
Given a positive integer , output a square pattern of rows and columns (see the sample input/output). The pattern is made of uppercase letters.
The first row starts with the uppercase letter , the second row with , and so on; within each row, the 2nd column is the next letter after the 1st column, the 3rd column is the next letter after the 2nd column, and so on; in particular, the letter after the uppercase letter is defined to be the uppercase letter .
Input Format
The input is one line containing a positive integer . It is guaranteed that .
Output Format
Output the required square pattern.
Sample Input
Sample Input 1
3
Sample Input 2
5
Sample Output
Sample Output 1
ABC
BCD
CDE
Sample Output 2
ABCDE
BCDEF
CDEFG
DEFGH
EFGHI
Sample Explanation
In the first sample, . The first row starts with , followed by , → . The second row starts with , followed by , → . The third row starts with , followed by , → . The final output is a -row, -column square pattern.
Constraints