#include
char string_reverse(char ch[])// function definition
{
int i=0,found=1;
int len=strlen(ch);
for(i=0;i<(len/2+1);i++)
{
if(ch[i] !=ch[--len])// checks chars front with backward chars
{
found=0;
break;
}
}//FOR
if(found==1)
printf("%s is a palindrome\n",ch);
else
printf("%s is Not palindrome\n",ch);
}
main()//Begining of the main function
{
char ch[10];//char array declaration
printf("Enter the string:");
scanf("%s",ch);// takes input from the keyboard
string_reverse(ch);//Function calling
}