コード例 #1
0
        static void Main(string[] args)
        {
            CheckPalindrome checker = new CheckPalindrome();

            Console.WriteLine(checker.PalendromSearch("ra.,,.cecar"));
            Console.Read();
        }
コード例 #2
0
        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");
            }
        }