Problem1774--打印方阵

1774: 打印方阵

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

输入任意整数nn<=10),打印如下图所示n*n方阵。

Input

输入一个正整数n(n<=10)

Output

具体nn列方阵(每个数据占四位,并向左靠齐)

Sample Input Copy

5

Sample Output Copy

   1   2   3   4   5
  16  17  18  19   6
  15  24  25  20   7
  14  23  22  21   8
  13  12  11  10   9

Source/Category

admin