#include
#include
#include
#define M 10
/* run this program using the console pauser or add your own getch, system("pause") or input loop /
/*238-6.编写判断字符串是否为回文的函数,并按书中要求输出对应结果。/
void plalindrome(char s)
{
int a,i=0,n;
n=strlen(s)-1;
for(i=0;i<n;i++)
{
if(*s!=(s+n-1-i))
{
a=0;
break;
}
}
if(a==0)
{
printf("NO");
}
else
{
printf("YES");
}
}
int main(int argc, char *argv[])
{
char str[M],*s,i=0;
while((str[i++]=getchar())!='\n');
s=str;
plalindrome(s);
return 0;
}