include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
int main()
{
int a[15][15];
int i,j,n;
while(cin>>n,n>0)
{
memset(a,0,sizeof(a));
a[0][0]=1;
for(i=1;i<n;i)
{
a[0][i]=2*a[0][i-1];
}
for(i=1;i<n;i)
for(j=0;j<n;j)
a[i][j]=a[i-1][j]*2;
for(i=0;i<n;i)
{
for(j=0;j<n;j++)
printf(“%d “,a[i][j]);
printf(“\n”);
}
printf(“\n”);
}
}