Scanner in = new Scanner(System.in);
System.out.println("请输入一个整数N=:");
int input = in.nextInt();
int i = 0;
int sum = 0;
int record=input;
while(true){
i = input%10;
sum =sum*10+i;
input /= 10;
if(input==0) break;
}
if(sum==record)System.out.println("是回文");
else System.out.println("不是回文");