Browse Source

5 Fragen und Antworten hinzugefügt

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

12
src/timequiz.c

@ -19,13 +19,23 @@ void timequiz() {
char* questions[] = {
"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"},
{"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 };
int correctAnswers[] = { 1, 1, 1, 1, 1, 1 };
for (int i = 0; i < sizeof(questions) / sizeof(questions[0]); i++) {
int j = rand() % 4;

Loading…
Cancel
Save