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); }