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(); }
public static void PresentQuestion(Question q) { q.Display(); string antwoord = Console.ReadLine(); if (antwoord == q.Antwoord) { Console.WriteLine("true"); } else { Console.WriteLine("false"); } }