#include <stdio.h>
int main(void){
int
num;
scanf("%d",&num);
int
ww,qw,gw,sw;
ww=num/10000;
qw=num%10000/1000;
gw=num%10;
sw=num%100/10;
if(ww==gw&&qw==sw){
printf("这个数是回文数\n");
}else{
printf("这个数不是回文数\n");
}
}
原文地址:http://www.cnblogs.com/sky8-/p/3764768.html