From fb3d9390ab0d46c2ad183ad3c55808bf389a1e2b Mon Sep 17 00:00:00 2001 From: Pascal Schneider Date: Tue, 6 Feb 2024 00:25:28 +0100 Subject: [PATCH] letzten Fragen und Antworten --- src/timequiz.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/timequiz.c b/src/timequiz.c index 18c289e..c5edcd0 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -52,7 +52,11 @@ void timequiz() { "Who composed 'The Four Seasons'?", "What is the largest mammal in the world?", "What is the study of earthquakes called?", - "Who wrote 'Hamlet'?" + "Who wrote 'Hamlet'?", + "What is the smallest prime number?", + "Who is known as the 'Queen of Pop'?", + "What is the chemical symbol for oxygen?", + "What is the capital of Australia?" }; char* answers[][4] = { @@ -91,13 +95,17 @@ void timequiz() { {"Antonio Vivaldi", "Wolfgang Amadeus Mozart", "Ludwig van Beethoven", "Johann Sebastian Bach"}, {"Blue whale", "African elephant", "Giraffe", "Polar bear"}, {"Seismology", "Meteorology", "Geology", "Astronomy"}, - {"William Shakespeare", "Charles Dickens", "Jane Austen", "Mark Twain"} + {"William Shakespeare", "Charles Dickens", "Jane Austen", "Mark Twain"}, + {"2", "3", "5", "7"}, + {"Madonna", "Beyoncé", "Lady Gaga", "Taylor Swift"}, + {"O", "Co", "O2", "O3"}, + {"Canberra", "Sydney", "Melbourne", "Perth"} }; int correctAnswers[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1 }; + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; for (int i = 0; i < sizeof(questions) / sizeof(questions[0]); i++) { int j = rand() % 4;