#include <stdio.h>
#include <string.h>
int main()
{
char str1[20],str2[20];
int i,n;
printf("Enter any string\n");
scanf("%s",str1);
strcpy(str2,str1);
strrev(str2);
if(strrev(str1,str2)==0)
printf("%s is palindrome",str1);
else
printf("%s is not palindrome",str1);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: