Sinux1

PS8Q3.cpp

May 3rd, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     string name;
  7.  
  8.     cout << "Enter some word\n";
  9.     cin >> name;
  10.  
  11.     for ( int counter = name.length() - 1; counter >= 0; counter --)
  12.     {
  13.         cout << name[counter];
  14.     }
  15.     cout << endl;
  16.     return 0;
  17. }
Add Comment
Please, Sign In to add comment