#include <iostream>
using namespace std;
int main()
{
int n;
while(cin>>n, n)
{
for(int i=0;i<n;i++){
for(int j=0;j<n;j++) {
cout<< (1<<(i+j))<<" ";
}
cout<<endl;
}
cout<<endl;
}
return 0;
}
兄弟有时间填个邀请码hhhhhhhhh(可以得AC币,邀请码在学生认证那填) 我的邀请码是:GUDFH