#include <iostream>
#include <cstring >  

using namespace std;

int main() 
{
	
	char y = 'y'; 
	int numAlp;
	char word1[numAlp];
	char word2[numAlp];
	char word[numAlp];
	
	do{
	
	cout<< "\nHow many alphabets are there in the word you are cheking for palindrome : ";
	cin >> numAlp;
	cout << "\nEnter word to be checked for palindrome : ";
	cin >> word1;
	cout << " " << endl;
	
	int j = 0;
	for (int i = strlen(word1); i--; )
	{    
	    word2[j] = word1[i];
	    j++;
	}
	
	cout << word1 << " - " << word2 << endl;
	
	if (strcmp(word1, word2) == 0)
		cout << word1 << " is a palindrome word" << endl;
	else
		cout << word1 << " is not a palindrome word" << endl;
	
	cout << "\nDo you want to continue the loop? type y for yes : ";
	cin >> y;

	}
	while ( y == 'y');

	
  	return 0;
}
