#include<stdio.h>
#include<string.h>
int main()
{
    char str1[20],str2[20];
    int i=0,n=5;
    printf("enter any string\n");
    scanf("%s",str1);
    n=strlen(str1);
    for(i=0;str1[i]!='\0';i++)
    {
        str2[n-i-1]=str1[i];
    }
    str2[n]='\0';
    printf("input string is %s and reversed string is %s\n",str1,str2);
    if(strcmp(str1,str2)==0)
    printf("%s is palindrome",str1);
    else
    printf("%s is not a plinderome",str1);
    return 0;
}

Embed on website

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