Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(int argc, char** argv) {
- int a;
- cin>>a;
- cout<<endl; cout<<endl;
- for(int i=1; i<=a; i++)
- {for(int i=1; i<=a; i++)
- {cout<<"X";}
- cout<<endl;}
- cout<<endl; cout<<endl;
- for(int r=1; r<=a; r++)
- {for(int x=1; x<=r; x++)
- {cout<<"X";}
- cout<<endl; }
- cout<<endl; cout<<endl;
- for(int r=1; r<=a; r++)
- {for(int x=1; x<=a-r; x++)
- cout<<" ";
- for(int k=1; k<=r; k++)
- cout<<"X";
- cout<<endl;}
- cout<<endl; cout<<endl;
- for(int k=1; k<=a; k++)
- cout<<"X";
- cout<<endl;
- for(int n=1;n<=a-2;n++){
- cout<<"X";
- for(int j=1;j<=a-2;j++)
- cout<<" ";
- cout<<"X"<<endl;}
- for(int l=1;l<=a;l++)
- cout<<"X";
- cout<<endl; cout<<endl;
- for(int b=1;b<=a;b++)
- {for(int c=1;c<=a-b;c++)
- {cout<<" ";}
- for(int c=1;c<=b*2-1;c++)
- {cout <<"X";}
- cout<<endl;}
- for(int d=1;d<=2;d++)
- {for(int d=1;d<=a-1;d++)
- {cout <<" ";}
- cout<<"#"<<endl;}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement