#include<fstream.h> void main() { int i,j,n,a[25][25]; cin>>n; for(i=1;i<=n;i++) for(j=1;j<=i;j++) {a[i][j]=i; a[j][i]=i; } for(i=1;i<=n;i++) {cout<<endl; for(j=1;j<=n;j++) cout<<a[i][j]<<" "; } }