// Check if a string is palindrome
// By DreamVB 23:44 13/10/2016

#include <iostream>

using namespace std;
using std::cout;
using std::endl;

int main(int argc, char *argv[]){
	char s0[80];
	char s1[80];
	
	cout << "Enter a string to see if it is palindrome : ";
	cin >> s0;
	//Make a copy of original string
	strcpy(s1, s0);
	//Reversing the string
	strrev(s0);
	//Check if the strings match.
	if (strcmp(s0, s1) == 0){
		cout << s1 << " is palindrome." << endl;
	}
	else{
		cout << s1 << " is not palindrome." << endl;
	}

	system("pause");
	return 0;
}