#include<stdio.h>
#include<string.h>
void main()
{
char a[30],b[30];
printf("\n\tPALINDROME");
printf("\n\t----------");
printf("\nEnter a string:");
scanf("%s",a);
strcpy(b,a);
if(strcmp(a,b)==0)
printf("\n%s is a palindrome",b);
else
printf("\n%s is not a palindrome",b);
}





Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: