예제 #1
0
파일: Program.cs 프로젝트: Falkion/huiswerk
        public static void PresentQuestion(Question q)
        {
            q.Display();
            Console.WriteLine("Your answer: ");
            string response = Console.ReadLine();

            Console.WriteLine(q.CheckAnswer(response));
            Console.WriteLine("Press any key to continue..");
            Console.ReadKey();
        }
예제 #2
0
 public static void PresentQuestion(Question q)
 {
     q.Display();
     string antwoord = Console.ReadLine();
     if (antwoord == q.Antwoord)
     {
         Console.WriteLine("true");
     }
     else
     {   
         Console.WriteLine("false");
     }
 }