Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <Windows.h>
- #include <iostream>
- #include <math.h>
- #include <string>
- using namespace std;
- void pov(string s)
- {
- for (int i = 0; i < s.length(); i++)
- {
- cout << s << endl;
- }
- }
- int main()
- {
- SetConsoleCP(1251);
- SetConsoleOutputCP(1251);
- setlocale(LC_ALL, "Russian");
- string str;
- cout << "Введите слово: ";
- getline(cin, str);
- pov(str);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement