Advertisement
rootuss

s2

Feb 27th, 2017
428
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.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     string wyraz;
  8.     cout<<"podaj wyraz: ";
  9.     cin>>wyraz;
  10.     int dlugosc= wyraz.length();
  11.  
  12.     for(int i=dlugosc-1;i>=0;i--)
  13.     {
  14.      cout<<wyraz[i];
  15.     }
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement