Browse Source

weitere 5 Fragen und Antworten hinzugefügt

remotes/origin/Pascal
Pascal Schneider 11 months ago
parent
commit
a4235120e5
  1. 12
      src/timequiz.c

12
src/timequiz.c

@ -24,6 +24,11 @@ void timequiz() {
"What is the chemical symbol for water?",
"Who wrote 'To Kill a Mockingbird'?",
"What is the largest planet in our solar system?",
"Who painted the Mona Lisa?",
"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?"
};
char* answers[][4] = {
@ -33,9 +38,14 @@ void timequiz() {
{"H2O", "CO2", "NaCl", "C6H12O6"},
{"Harper Lee", "J.K. Rowling", "Ernest Hemingway", "George Orwell"},
{"Jupiter", "Saturn", "Mars", "Neptune"},
{"Leonardo da Vinci", "Michelangelo", "Pablo Picasso", "Vincent van Gogh"},
{"Mount Everest", "K2", "Kangchenjunga", "Lhotse"},
{"Japan", "China", "South Korea", "India"},
{"Neil Armstrong", "Buzz Aldrin", "Yuri Gagarin", "Alan Shepard"},
{"1914", "1918", "1923", "1939"}
};
int correctAnswers[] = { 1, 1, 1, 1, 1, 1 };
int correctAnswers[] = { 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;

Loading…
Cancel
Save