Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- setlocale(0, "ru");
- int a, b;
- string c;
- cout << "Введите символ c: ";
- getline(cin, c);
- cout << "Введите длину a: ";
- cin >> a;
- cout << "Введите ширину b: ";
- cin >> b;
- for (int i = 0; i < a; i++)
- {
- for (int j = 0; j < b; j++)
- {
- cout << c <<" ";
- }
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment