#include <stdio.h> #include <string.h> using namespace std; int main(){ char s[110]; gets(s); for( int i=strlen(s)-1; i>=0; i-- ){ printf("%c", s[i]); } printf("\n"); return 0; }
Double click to view unformatted code.