public static void Main()
        {
            /* Ask the user what their name is */
            Console.WriteLine("Hello [User], What is your name ?");
            var name = Console.ReadLine();

            /* Respond to their input by saying “Hello, <name>” */
            Console.WriteLine("Hello " + name + "!!!");

            /* Ask them to solve a math question (simple is better here) */

            QuestionOne.Ask();
        }
Esempio n. 2
0
        public static void TryAgain()
        {
            string userInput;

            Console.WriteLine("Incorrect");
            /* Ask them if they would like to try again */
            Console.WriteLine("Try Again  ?");
            Console.WriteLine("Enter Y or N");

            userInput = Console.ReadLine().ToUpper();

            /* If they want to try again, repeat the above steps */
            if (userInput == "Y")
            {
                QuestionOne.Ask();
            }
            else
            {
                GameOver.GoodBye();
            }
        }