#include<bits/stdc++.h> using namespace std; int main(){ char a[100]; gets(a); int i; int len=strlen(a); for(i=len-1;i>=0;i--){ printf("%c",a[i]); } }
Double click to view unformatted code.