public static void Main() {
Console.Write("Enter a word: ");
string word = Console.ReadLine();
if (IsPalindrome(word)) {
Console.WriteLine("The word is a palindrome!");
Console.WriteLine("The word is not a palindrome.");
static bool IsPalindrome(string word) {
int length = word.Length;
for (int i = 0; i < length / 2; i++) {
if (word[i] != word[length - i - 1]) {