public static void Main(){
string firstWord = "temp", secondWord = "temp", reverseWord = string.Empty;
for (int i = firstWord.Length -1; i >=0; i--)
reverseWord += firstWord[i];
Console.WriteLine("This is the reversed word : "+reverseWord);
if(secondWord == firstWord)
{Console.WriteLine("This word is palindrome : "+secondWord);}
else{Console.WriteLine("This word is NOT palindrome : "+secondWord);}