Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "rus");
- string N;
- int n, i, numb;
- cout << "Введите символ: ";
- getline(cin, N);
- cout << "Введите количество символов: ";
- cin >> n;
- cout << "Нажмите на 1 ,чтобы сделать вертикально . Или на 2 ,чтобы было горизонатально " << endl;
- cin >> numb;
- cout << "_________________________________________________________" << endl;
- i = 0;
- if (numb == 1)
- while (i != n)
- {
- cout << N <<" " << endl;
- i++;
- }
- else if (numb == 2)
- while (i != n)
- {
- cout << N<<" " ;
- i++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement