Advertisement
osdever

Untitled

Sep 7th, 2023
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. int main()
  5. {
  6. ​using namespace std;
  7.  
  8. ​const auto x = '#';
  9.  
  10. ​cout << ' ' << x << setw(7) << x << x << " " << endl;
  11. ​cout << x << x << setw(6) << x << x << x << setw(4) << x << x << endl;
  12. ​cout << setw(7) << x << setfill(x) << setw(5) << ' ' << setfill(' ') << x << ' ' << x << endl;
  13. ​cout << x << x << " " << setfill(x) << setw(7) << ' ' << setw(4) << '\n';
  14. ​cout << setw(15) << " " << setfill(' ') << endl;
  15. ​cout << ' ' << setfill(x) << setw(5) << ' ' << setfill(' ') << ' ' << x << ' ' << ' ' << x << x << " " << endl;
  16. ​cout << " " << setfill(x) << setw(4) << ' ' << setw(3) << ' ' << setw(6) << ' ' << endl;
  17. ​cout << " " << setfill(x) << setw(13) << '\n';
  18. ​cout << " " << setfill(x) << setw(7) << ' ' << setw(7) << '\n';
  19. ​cout << " " << setfill(x) << setw(7) << ' ' << ' ' << setw(7) << '\n';
  20. ​cout << " " << setfill(x) << setw(11) << '\n';
  21. ​cout << setfill(x) << setw(5) << ' ' << ' ' << setw(6) << ' ' << ' ' << x << endl;
  22. ​cout << x << x << x << " " << x << x << x << x << " " << x << x << endl;
  23. ​cout << setfill(' ') << setw(9) << x << x << x << " " << x << endl;
  24. ​cout << x << x << ' ' << setfill(x) << setw(4) << ' ' << setfill(' ') << setw(3) << x << x << " " << x << x << endl;
  25.  
  26. ​return 0;
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement