public static bool Palindrome(string Text)
int checks = Text.Length / 2;
bool IsPalindrome = true;
for (int Index = 0 ; Index < Text.Length ; Index++)
if (Text[Index] != Text[Text.Length - Index - 1])
public static void Main(string[] args)
Console.WriteLine(Palindrome("Sam"));
Console.WriteLine(Palindrome("Hannah"));