```cpp
include[HTML_REMOVED]
using namespace std;
int main(){
int j,i,n;
cin>>n;
for(i=0;i<n;i){
for(j=0;j<n;j){
if(abs(i-n/2)+abs(j-n/2)<=n/2){//矩阵索引从零开始,n/2为取整
cout<<”*”;}
else
cout<<” “;
}
cout<<endl;
}
return 0;
}