#include <stdio.h>
#include<string.h>
int main()
{
char str[5];
printf("请输入五位数:");
scanf("%s",str);
if(str[0]==str[4]&&str[1]==str[3])
printf("这是一个回文数。\n");
else
printf("这不是回文数。\n");
return 0;
}
If you have any questions, please comment below and I will answer them for you .c language: palindrome number, 5-digit judgment
Guess you like
Origin blog.csdn.net/samxiaoguai/article/details/78503975
Recommended
Ranking