#include<stdio.h>
#include<conio.h>
#include<string.h>
main ()
{
char s[50],t[50];
int res;
printf("enter any name");
gets(s);
strcpy(t,s);
strrev(t);
res=strcmp(s,t);
if(res==0)
printf("name is pallindrome");
else
printf("name is not pallindrome");
}
Output
enter any name : naman
name is pallindrome
0 Comments
Hey, What do you think about this post