From aa17c573556a1cbc200bae845ce5e19181e6276b Mon Sep 17 00:00:00 2001 From: Pascal Schneider Date: Tue, 6 Feb 2024 00:00:30 +0100 Subject: [PATCH] =?UTF-8?q?5=20Fragen=20und=20Antworten=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/timequiz.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/timequiz.c b/src/timequiz.c index 5859cc1..ad62cd7 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -18,14 +18,24 @@ void timequiz() { printf("You have 60 seconds to answer the questions. Have fun!\n"); char* questions[] = { - "What is the capital of France?", - }; + "What is the capital of France?", + "Who developed the theory of relativity?", + "Who was the first President of the United States?", + "What is the chemical symbol for water?", + "Who wrote 'To Kill a Mockingbird'?", + "What is the largest planet in our solar system?", +}; char* answers[][4] = { {"Paris", "London", "Berlin", "Madrid"}, - }; - - int correctAnswers[] = { 1 }; + {"Albert Einstein", "Isaac Newton", "Galileo Galilei", "Stephen Hawking"}, + {"George Washington", "Thomas Jefferson", "John Adams", "James Madison"}, + {"H2O", "CO2", "NaCl", "C6H12O6"}, + {"Harper Lee", "J.K. Rowling", "Ernest Hemingway", "George Orwell"}, + {"Jupiter", "Saturn", "Mars", "Neptune"}, +}; + + int correctAnswers[] = { 1, 1, 1, 1, 1, 1 }; for (int i = 0; i < sizeof(questions) / sizeof(questions[0]); i++) { int j = rand() % 4;