From f342c31bde2561544eb051fc4c1aa4b2916853b0 Mon Sep 17 00:00:00 2001 From: Pascal Schneider Date: Tue, 6 Feb 2024 00:14:17 +0100 Subject: [PATCH] weitere 5 Fragen und Antworten --- src/timequiz.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/timequiz.c b/src/timequiz.c index 090a33c..20af7fd 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -28,7 +28,12 @@ void timequiz() { "What is the tallest mountain in the world?", "Which country is known as the Land of the Rising Sun?", "Who was the first person to walk on the moon?", - "What year did World War I begin?" + "What year did World War I begin?", + "What is the currency of Japan?", + "Who is known as the 'Father of Computers'?", + "What is the capital of Canada?", + "Who discovered penicillin?", + "What is the chemical formula for table salt?" }; char* answers[][4] = { @@ -42,10 +47,15 @@ void timequiz() { {"Mount Everest", "K2", "Kangchenjunga", "Lhotse"}, {"Japan", "China", "South Korea", "India"}, {"Neil Armstrong", "Buzz Aldrin", "Yuri Gagarin", "Alan Shepard"}, - {"1914", "1918", "1923", "1939"} + {"1914", "1918", "1923", "1939"}, + {"Yen", "Euro", "Dollar", "Pound"}, + {"Charles Babbage", "Alan Turing", "Ada Lovelace", "Bill Gates"}, + {"Ottawa", "Toronto", "Vancouver", "Montreal"}, + {"Alexander Fleming", "Louis Pasteur", "Marie Curie", "Albert Einstein"}, + {"NaCl", "H2O", "CO2", "HCl"} }; - int correctAnswers[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; + int correctAnswers[] = { 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;