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[HTML_REMOVED]i)
a[i][j]=a[i][j-1]+1;
if(i>j)
a[i][j]=a[i-1][j]+1;
printf(“%d “,a[i][j]);
}
printf(“\n”);
}
printf(“\n”);
scanf(“%d”,&n);
}
return 0;
}