示例#1
0
        static void Main(string[] args)

        {
            Console.WriteLine("Let's test for palindromes!\n");



            Console.WriteLine("Please enter a word.");

            // User Input

            string input = Console.ReadLine();



            // Check to see if input is correct

            // If not, clear console.

            Console.WriteLine("Is this your word? (y/n)");

            Console.Write("{0}: ", input);

            string yes_no = Console.ReadLine();

            if (yes_no == "y" || yes_no == "yes")

            {
                Console.WriteLine("Calculating Palindromism... \n");

                Palindrome.Tester(input);
            }

            else

            {
                Console.WriteLine("Trying again... \n");

                Main(args); // Restart The Program
            }



            Console.ReadLine();
        }