using System;
public class Program
{
public static void Main()
string[] array = {"ivic", "delevaeled","Hannah","kayak","level","examiron","racecar", "radar","refer","reviver","easywcf","rotator", "rotor","sagas", "solos", "stats",""};
foreach(var item in array){
Console.WriteLine("{0} = {1}", item,Palindrome(item));
}
Console.ReadLine();
public static bool Palindrome(string word)
int min = 0;
int max = word.Length - 1;
while (true)
if (min > max)
return true;
char a = word[min];
char b = word[max];
if (char.ToLower(a) != char.ToLower(b))
return false;
min++;
max--;