#include #include int main() { int x,i=0,c; cout<<"Please Enter Your Row:"; cin>>x; while(x-2!=2*i-1) i++; for(int j=1;j<=3;j++) { for(int h=1;h<=j-1;h++) cout<<" "; cout<<"*"; for(int u=1;u<=x-2*j;u++) cout<<" "; cout<<"*"; cout<<"\n"; } for(int z=1;z<=i;z++) cout<<" "; cout<<"*"<<"\n"; c=i; for(int s=1;s<=i;s++) { for(int t=1;t<=c-1;t++) cout<<" "; cout<<"*"; for(int v=1;v<=2*s-1;v++) cout<<" "; cout<<"*"<<"\n"; c--; } getch(); return 0; }