#include<stdio.h>
#include<string.h>
void main()
{
char str[10],str2[10];
printf("Enter the string:");
gets(str);
strcpy(str2,str);
strrev(str2);
if(strcmp(str,str2)==0)
printf("palindrome");
else
printf("not palindrome");
}
#include<string.h>
void main()
{
char str[10],str2[10];
printf("Enter the string:");
gets(str);
strcpy(str2,str);
strrev(str2);
if(strcmp(str,str2)==0)
printf("palindrome");
else
printf("not palindrome");
}