#include<bits/stdc++.h> using namespace std; int main() { int i,j,n,k,o=0; cin>>n; k=1+n*2; for(i=1;i<=k/2+1;i++){ for(int j=1;j<=o/2;j++){ cout<<" "; } for(int j=1;j<=k-o;j++){ cout<<"*"; } for(int j=1;j<=o/2;j++){ cout<<" "; } o+=2; cout<<endl; } o=3; for(i=1;i<=n;i++){ for(j=1;j<=(k-o)/2;j++){ cout<<" "; } for(j=1;j<=o;j++){ cout<<"*"; } for(j=1;j<=(n-o)/2;j++){ cout<<" "; } o+=2; cout<<endl; } return 0; } /************************************************************** Problem: 1073 User: houshanglin Language: C++ Result: Wrong Answer ****************************************************************/