Browse Source

Code für Timequiz fertig

remotes/origin/Pascal
Pascal Schneider 11 months ago
parent
commit
4b4617f4a7
  1. 5
      src/timequiz.c

5
src/timequiz.c

@ -153,6 +153,11 @@ void timequiz() {
printf("Answer (1-4): ");
scanf_s("%d", &userAnswer);
while (!isValidAnswer(userAnswer)) {
printf("Invalid input. Please enter a number between 1 and 4: ");
scanf_s("%d", &userAnswer);
}
processUserAnswer(userAnswer, correctIndex, &score, &totalCorrectAnswers, answers[questionIndex]);
totalAnsweredQuestions++;

Loading…
Cancel
Save