|
|
@ -96,6 +96,13 @@ void looping(char qS[][100], char qC[][100], char aS[]){// 5 |
|
|
|
scanf(" %c", &response); |
|
|
|
response = toupper(response); |
|
|
|
} |
|
|
|
else if (response == 'H') { |
|
|
|
hint(i); |
|
|
|
printf("Enter your answer (A, B, C, or D): "); |
|
|
|
scanf(" %c", &response); |
|
|
|
response = toupper(response); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(response == aS[i]){ |
|
|
|
score++; |
|
|
@ -128,9 +135,12 @@ void ask_questions(void) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void hint(int question_num) { |
|
|
|
char qC[][100] = {//6 |
|
|
|
"The Tallest mountain is 8,849m." |
|
|
|
}; |
|
|
|
printf("%s\n",qC[question_num]); |
|
|
|
} |
|
|
|
|
|
|
|
int main(){ |
|
|
|
displayInstructions(); |
|
|
|