From ed4576bc37505a6e8b06e4d2543ea76d04de8138 Mon Sep 17 00:00:00 2001 From: Pascal Schneider Date: Tue, 6 Feb 2024 00:34:37 +0100 Subject: [PATCH] =?UTF-8?q?Funktion=20f=C3=BCr=20ung=C3=BCltige=20Eingabe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/timequiz.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/timequiz.c b/src/timequiz.c index b7c29e9..5a78f6d 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -191,4 +191,5 @@ void processUserAnswer(int userAnswer, int correctIndex, int* score, int* totalC } int isValidAnswer(int userAnswer) { + return (userAnswer >= 1 && userAnswer <= 4); }