#include <iostream> #include <cstring> #include <cmath> using namespace std; int main() { char str[100]; gets(str); int len = strlen(str); for(int i = len - 1; i >= 0; i--) { cout << str[i]; } return 0; } |
Double click to view unformatted code.