#include
#include
#include
void main()
{
char a[10],b[10];
clrscr();
cout<<"Please Enter Any String";
cin>>a;
strcpy(b,a);
strrev(b);
if(strcmp(a,b)==0)
{
cout<<"Enter String is Palindrome";
}
else
{
cout<<"Enter String is not Palindrome";
}
getch();
}
C++ Program TO REPLACE A PARTICULAR WORD BY ANOTHER WORD IN GIVEN STRING
ReplyDelete