public static void Main()
Console.WriteLine("Введіть слово");
string word = Console.ReadLine().ToUpper();
for (int i = 0; i < word.Length; i++)
if (word[0 + i] == word[word.Length - 1 - i])
else if (word[0 + i] != word[word.Length - 1 -i])
Console.WriteLine("Це не паліндром");
Console.WriteLine("Це паліндром");