|
@ -12,6 +12,8 @@ void displayQuestion(char* question, char* answers[], int correctIndex); |
|
|
|
|
|
|
|
|
void processUserAnswer(int userAnswer, int correctIndex, int* score, int* totalCorrectAnswers, char* answers[]); |
|
|
void processUserAnswer(int userAnswer, int correctIndex, int* score, int* totalCorrectAnswers, char* answers[]); |
|
|
|
|
|
|
|
|
|
|
|
int isValidAnswer(int userAnswer); |
|
|
|
|
|
|
|
|
void timequiz() { |
|
|
void timequiz() { |
|
|
|
|
|
|
|
|
printf("Welcome to our Time Quiz!\n"); |
|
|
printf("Welcome to our Time Quiz!\n"); |
|
@ -187,3 +189,6 @@ void processUserAnswer(int userAnswer, int correctIndex, int* score, int* totalC |
|
|
printf("Wrong! The correct answer is: %d. %s\n", correctIndex + 1, answers[correctIndex]); |
|
|
printf("Wrong! The correct answer is: %d. %s\n", correctIndex + 1, answers[correctIndex]); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int isValidAnswer(int userAnswer) { |
|
|
|
|
|
} |