#include<stdio.h>

#include<string.h>

void main()

{

    char s1[30],s2[30];

    int x;

    printf("\nEnter The String (S1) : ");

    gets(s1);

    strcpy(s2,s1);

    strrev(s2);

    x=strcmp(s1,s2);

    printf("\nReverse String (S2) : %s",s2);

    if(x==0)

    {

        printf("\nHence %s is palindrome string ",s1);

    }

    else

    {

        printf("\nHence %s is not palindrome string",s2);

    }

}