![]() |
#2
yangfrancis2014-12-07 13:52
|
#include <cstdlib>
#include <iostream>
#include <string.h>
using namespace std;
int main(int argc, char *argv[])
{
int i,j;
char str[20];
gets(str);
for(i=0,j=strlen(str)-1;i<j;i++,j--)
{
if(str[i]==str[j])
continue;
else
break;
}
if(i>=j)
printf("yes");
else
printf("no");
system("PAUSE");
return EXIT_SUCCESS;
}