C language to judge the number of palindrome (PTA)
#include <stdio.h>
#include<string.h>
int main()
{
int j,i;
char a[1000],b[1000];
scanf("%s",a);
for(i=0,j=4;i<5;i++,j--)
b[j]=a[i];
for(i=0;i<5;i++)
{
if(b[i]!=a[i])
break;
}
if(i==5) printf("%s yes\n",&a);
else printf("%s no\n",&a);
}