#include<bits/stdc++.h>
using namespace std;
int main()
{
char c[20];
int i,j;
cout<<"请输入字符c:";
cin>>c;
int n=strlen(c);
for(i=0,j=n-1;i<=j;i++,j--)
{
if(c[i]!=c[j]) break;
}
if(i>j) cout<<"是回文!";
else cout<<"不是回文!";
return 0;
}