```cpp
include[HTML_REMOVED]
include[HTML_REMOVED]
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){
int up=i+1,left=j+1,down=n-i,right=n-j;
cout<<min(min(up,down),min(left,right))<<’ ‘;//内部是比完的较小值,也用min(,)
}
cout<<endl;
}
cout<<endl;
}
return 0;
}