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