Advertisement
MargaritaOwl

Parrot

May 14th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. setlocale(LC_ALL, "rus");
  8.  
  9. int i,len;
  10. char arr[256];
  11. zxc:
  12. system("cls");
  13. cout<<"Введите строку -> ";
  14. cin.getline(arr, 256);
  15. len = strlen(arr);
  16. system("cls");
  17. for (i = 0; i < len; i++)
  18. cout<<arr[i];
  19. cout<<'\n';
  20. if (len)
  21. {
  22. system("pause");
  23. goto zxc;
  24. }
  25.  
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement