#include <bits/stdc++.h>
using namespace std;
int main(){
int n,i,j;
cin>>n;
for(i=1;i<=n;i++){
int x=i;
for(j=i;j<=n*n;j+=n){
cout<<setw(3)<<j;
}
cout<<endl;
}
return 0;
}
输入整数N,输出相应方阵。
输入
一个整数N。( 0 < n < 10 )
输出
一个方阵,每个数字的场宽为3。
样例
输入
5
输出
21 22 23 24 25
16 17 18 19 20
11 12 13 14 15
6 7 8 9 10
1 2 3 4 5