Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int side;
- cin >> side;
- for (int i = 0; i < side; i++) {
- for (int j = 0; j < side; j++) {
- cout << '*';
- }
- cout << endl;
- }
- return 0;
- }
- Или тарикатската:)
- #include <iostream>
- using namespace std;
- int main() {
- int side;
- cin >> side;
- for (int i = 0; i < side; i++) {
- cout << string(side, '*') << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement