#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
int number = 0;
scanf("%d", &number);//输入一个数
int rev = 0;//将输入的数字进行反转
int copnumber = number;//存储输入的数,为了后面进行比较
while (number != 0)
{
int temp = number % 10;
number = number / 10;
rev = rev * 10 + temp;
}
if (rev == copnumber)
{
printf("输入的是回文数");
}
else
{
printf("输入的不是回文数");
}
return 0;
}