#include <iostream>
#include<string.h>
using namespace std; 

int main() {
    char a[30],b[30];
    cout <<"Enter your name "<<endl; 
    cin>>a;
    strcpy(b,a);
    if(strcmp(a,b)==0)
    cout <<"Given name "<<a<<" is pallindrome";
    else 
    cout <<"Given name  "<<a<< " is not a pallindrome";
    return 0;
}

Embed on website

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