输入一个长整数,判断其低5位是否为回文(个位=万位,十位=千位)。如果是输出"this number is a huiwen",否则输出"this number is not a huiwen"
#include<stdio.h>
int main() {
int n;
scanf("%d",&n);
if (n%10 == n/10000%10 && n/10%10 == n/1000%10) {
printf("this number is a huiwen");
} else {
printf("this number is not a huiwen");
}
return 0;
}