Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- string x;
- int main()
- {
- cout << "podaj slowo: : ";
- cin>>x;
- int dl =x.size();
- dl/=2;
- for(int i=0;i<dl;i++)
- {
- swap(x[dl-i],x[dl]);
- }
- cout<<slowo;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement