Browse Source

weitere 5 Fragen und Antworten

remotes/origin/Pascal
Pascal Schneider 11 months ago
parent
commit
f342c31bde
  1. 16
      src/timequiz.c

16
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;

Loading…
Cancel
Save