Problem9444--数字走向1

9444: 数字走向1

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

Description

输入整数N,输出相应方阵。(如果浏览器样例有点乱,浏览模式选择兼容模式)

Input

一个整数N。( 0 < n < 10 )

Output

一个方阵,每个数字的场宽为3。

Sample 1 Input

5

Sample 1 Output

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

HINT

输出方法
cout << setw(3) << 要输出的数字;

printf("%3d", 要输出的数字)

Source/Category

1.6.二维数组