#include #include int main() { int i,num,n,ans,tt; while(scanf("%d",&num)!=EOF) { ans=0; n=3;//如果要求N位数反转,把n改了就好了 while(n!=0) { tt=num%10; num/=10; ans+=tt*pow((double)(10),(double)(--n)); } printf("%d\n",ans); } return 0; }