(一)把三位数看成串
#include<stdio.h>
int main(){
int n;
scanf("%d", &n);
printf("%d%d%d\n", n%10, n/10%10, n/100);
return 0;
}
(二)按进制大小求(为了防止翻转后首位是0的情况)
#include<stdio.h>
int main() {
int n, m;
scanf("%d", &n);
m = (n%10)*100 + (n/10%10)*10 + (n/100);
printf("%03d\n", m);
return 0;
}