Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.79K
1 Posted Topic
[CODE]#include<iostream> #include<string> using namespace std; void main() { string str; cout<<"Enter the string: "; cin>>str; string::reverse_iterator ri=str.rbegin(); //reverse iterator used to read the string from back to front if(equal(str.begin(),str.end(),ri)) //equal compares 2 strings in the provided order cout<<str<<" is a Pallindrome!"<<endl; else cout<<str<<" is not a Pallindrome!"<<endl; }[/CODE]
The End.
rohitvipin