Advertisement
arturParchem

Untitled

May 4th, 2020
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. string x;
  4. int main()
  5. {
  6.     cout << "podaj slowo: : ";
  7.     cin>>x;
  8.     int dl =x.size();
  9.     dl/=2;
  10.     for(int i=0;i<dl;i++)
  11.     {
  12.         swap(x[dl-i],x[dl]);
  13.     }
  14.     cout<<slowo;
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement