12345678910111213141516171819202122
#include <iostream> #include <cstring> using namespace std; int main() { char words[100]; int x, i; cout<< "Enter some word" << endl; cin>> words; x = strlen(words); for(int i = x; i > 0; i--) { cout<< words[i - 1]; } return 0; }