public static void Main(string[] args)
Console.WriteLine("Enter a string to reverse");
string word = Console.ReadLine();
string reverseword = ReverseString(word);
Console.WriteLine(reverseword);
Console.WriteLine("It is a Palindrome");
Console.WriteLine("It is not a Palindrome");
public static string ReverseString (string word)
string reverseString = string.Empty;
for(int i =0; i< word.Length; i++)
reverseString = word[i] + reverseString;