Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  palindrome
Language: C/C++
Code:
#include<iostream.h>
#include<iomanip.h>
#include<conio.h>
void main()
{
char s[100],r[100];
clrscr();
cout<<"Enter the string:";
cin.getline(s,100(
strcpy(r,s);
strrev(r);
if(strcmpi(s,r)==0)
cout<<"it is palindrome"<<endl;
else
cout<<"it is not a palindrome"<<endl;
getch();
}
Comments: