From 1ad10092c808ea1e61f915f2083b53a5c3cd81a8 Mon Sep 17 00:00:00 2001 From: Pascal Schneider Date: Mon, 5 Feb 2024 23:43:44 +0100 Subject: [PATCH] =?UTF-8?q?Funktion=20f=C3=BCr=20Anzeige=20von=20Fragen=20?= =?UTF-8?q?und=20Antworten?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/timequiz.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/timequiz.c b/src/timequiz.c index 223be16..7ff9158 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -72,4 +72,8 @@ int getRandomQuestionIndex(int askedQuestions[], int totalQuestions) { } void displayQuestion(char* question, char* answers[], int correctIndex) { + printf("\nQuestion: %s\n", question); + for (int i = 0; i < 4; i++) { + printf("%d. %s\n", i + 1, answers[i]); + } }