Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "rus");
- int i,len;
- char arr[256];
- zxc:
- system("cls");
- cout<<"Введите строку -> ";
- cin.getline(arr, 256);
- len = strlen(arr);
- system("cls");
- for (i = 0; i < len; i++)
- cout<<arr[i];
- cout<<'\n';
- if (len)
- {
- system("pause");
- goto zxc;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement