Polnochniy

Untitled

Nov 11th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4. int main()
  5. {
  6. setlocale(0, "ru");
  7. int a, b;
  8. string c;
  9. cout << "Введите символ c: ";
  10. getline(cin, c);
  11. cout << "Введите длину a: ";
  12. cin >> a;
  13. cout << "Введите ширину b: ";
  14. cin >> b;
  15.  
  16. for (int i = 0; i < a; i++)
  17. {
  18. for (int j = 0; j < b; j++)
  19. {
  20. cout << c <<" ";
  21. }
  22. cout << endl;
  23. }
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment