#include<stdio.h>
#include<string.h>
int main()
{
char str[30];
int i,n,c;
printf("\n\t\tPalindrome Checking.");
printf("\n\t\t-------------------");
printf("\nEnter the string : ");
scanf("%s",&str);
//n=strlen(str);
n=5;
for(i=0;i<n;i++)
{
if(str[i]==str[n-i-1])
c++;
}
if(c==n)
printf("\n%s is a Palindrome String.",str);
else
printf("\n%s is Not a Palindrome String.",str);
printf("\nProgram End...\n");
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: