#include using namespace std; int main() { cout << "Hello ! Welcome in the word inversor ! :-D" << endl << "Enter a word :"; string mot; getline(cin,mot); string tom; while (mot.size()!=0) { tom += mot[mot.size()-1]; mot.erase(mot.size()-1); } cout << tom; return 0; }