public static void Main()
Console.Write("Ingrese una palabra: ");
string word = Console.ReadLine();
string reversedWord = ReverseString(word);
if (word.Equals(reversedWord, StringComparison.OrdinalIgnoreCase))
Console.WriteLine("La palabra es un palíndromo.");
Console.WriteLine("La palabra no es un palíndromo.");
public static string ReverseString(string str)
char[] charArray = str.ToCharArray();
Array.Reverse(charArray);
return new string(charArray);