|
|
@ -181,6 +181,29 @@ void math_display_choice(){ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void math_enter_game() { |
|
|
|
int choice = 0; |
|
|
|
printf("\t\t-------------------------------------------------------\n"); |
|
|
|
printf("\t\t Please enter 1 to start the game\n "); |
|
|
|
printf("\t\t Please enter 0 to exit \n"); |
|
|
|
printf("\t\t-------------------------------------------------------\n\n"); |
|
|
|
printf("Enter your choice: "); |
|
|
|
|
|
|
|
scanf("%d", &choice); |
|
|
|
switch (choice){ |
|
|
|
// in order to start the game |
|
|
|
case 1: |
|
|
|
math_display_choice(); |
|
|
|
break; |
|
|
|
default: |
|
|
|
printf("\t\t-------------------------------------------------------\n"); |
|
|
|
printf("\t\t Sorry to see you go.\n "); |
|
|
|
printf("\t\t-------------------------------------------------------\n\n"); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//------------Math_quiz_end-------------- |
|
|
|
|
|
|
|
|
|
|
@ -2175,7 +2198,7 @@ int main(int argc, char *argv[]) { |
|
|
|
jump_to_menu = 1; |
|
|
|
break; |
|
|
|
case 9: |
|
|
|
math_display_choice(); |
|
|
|
math_enter_game(); |
|
|
|
jump_to_menu = 1; |
|
|
|
break; |
|
|
|
case 10: |
|
|
|