static void Main(string[] args) { CheckPalindrome checker = new CheckPalindrome(); Console.WriteLine(checker.PalendromSearch("ra.,,.cecar")); Console.Read(); }
static void Main() { Console.WriteLine("Please enter a word"); string word = Console.ReadLine(); string flippedWord = CheckPalindrome.IsPalindrome(word); bool finalWord = word == flippedWord; if (finalWord) { Console.WriteLine("Is a Palindrome"); } else { Console.WriteLine("Is not a Palindrome"); } }