include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
int main()
{
int n;
scanf(“%d”,&n);
int a[100][100];
while(n!=0)
{
int i,j;
for(i=0;i<n;i)
{
for(j=0;j<n;j)
{
a[i][j]=pow(2,i+j);
printf(“%d “,a[i][j]);
}
printf(“\n”);
}
printf(“\n”);
scanf(“%d”,&n);
}
return 0;
}