#include
#include
using namespace std;
void strout(int n,int m,int d) {
if (n>=1) if (d==1) strout(n-2,m,d);
if (n<=m-2) if (d==2) strout(n+2,m,d);<br> for (int i=0; i<(m-n)/2; i++) cout<<" ";<br> for (int i=0; i for (int i=(m-n)/2+n; i cout<<endl;<br>}
int main() {
int n;
cout<<"n = "; cin>>n;
if (n%2==0) n--;
strout(n,n,1);
strout(1,n,2);
cout<<endl;<br> system("pause");
return 0;
}
n = 7
1
333
55555
7777777
7777777
55555
333
1