Guest User

Untitled

a guest
Feb 6th, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.  
  8. int a;
  9. cin>>a;
  10.  
  11. for(int i=0; i<a;i++)
  12. {
  13.     cout<<endl;
  14.     for(int w=0; w<=i; w++)
  15.     {
  16.     cout <<"x";
  17. }
  18. }
  19.  
  20. for(int i=0; i<=a;i++)
  21. {
  22.     cout<<endl;
  23.     for(int w=i; w<a; w++)
  24.     {
  25.     cout <<"x";
  26. }
  27. }
  28.  
  29. cout<<endl<<endl;
  30.  
  31.     system("pause");
  32.     return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment