Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- int main()
- {
- using namespace std;
- const auto x = '#';
- cout << ' ' << x << setw(7) << x << x << " " << endl;
- cout << x << x << setw(6) << x << x << x << setw(4) << x << x << endl;
- cout << setw(7) << x << setfill(x) << setw(5) << ' ' << setfill(' ') << x << ' ' << x << endl;
- cout << x << x << " " << setfill(x) << setw(7) << ' ' << setw(4) << '\n';
- cout << setw(15) << " " << setfill(' ') << endl;
- cout << ' ' << setfill(x) << setw(5) << ' ' << setfill(' ') << ' ' << x << ' ' << ' ' << x << x << " " << endl;
- cout << " " << setfill(x) << setw(4) << ' ' << setw(3) << ' ' << setw(6) << ' ' << endl;
- cout << " " << setfill(x) << setw(13) << '\n';
- cout << " " << setfill(x) << setw(7) << ' ' << setw(7) << '\n';
- cout << " " << setfill(x) << setw(7) << ' ' << ' ' << setw(7) << '\n';
- cout << " " << setfill(x) << setw(11) << '\n';
- cout << setfill(x) << setw(5) << ' ' << ' ' << setw(6) << ' ' << ' ' << x << endl;
- cout << x << x << x << " " << x << x << x << x << " " << x << x << endl;
- cout << setfill(' ') << setw(9) << x << x << x << " " << x << endl;
- cout << x << x << ' ' << setfill(x) << setw(4) << ' ' << setfill(' ') << setw(3) << x << x << " " << x << x << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement