|
|
@ -777,7 +777,7 @@ void math_fact_lie(int question_num) { |
|
|
|
"Every triangle has three sides of equal length.", |
|
|
|
"The sum of the first n positive integers is equal to n(n+1)/2." |
|
|
|
}; |
|
|
|
printf("%s\n", math_facts_lies[question_num]); |
|
|
|
printf("\n%s\n", math_facts_lies[question_num]); |
|
|
|
} |
|
|
|
|
|
|
|
void math_fact_lie_solutions(int solution_num) { |
|
|
@ -788,10 +788,20 @@ printf("%s", math_fact_lie_solution[solution_num]); |
|
|
|
} |
|
|
|
|
|
|
|
void math_fact_lie_print() { |
|
|
|
printf("\n\t------------------------Instructions-------------------------------\n\n"); |
|
|
|
printf("\t\tThis game presents a set of mathematical statements.\n"); |
|
|
|
printf("\t\tYou need to determine if each statement is a fact or a lie.\n"); |
|
|
|
printf("\t\tChoose the right answer by typing fact or lie and press enter.\n\n"); |
|
|
|
printf("\t-------------------------------------------------------------------\n\n"); |
|
|
|
printf( "\t\t !! Wish you all the best !! \n\n"); |
|
|
|
printf("\t ......................................................\n" ); |
|
|
|
|
|
|
|
for(int i = 0; i < 8; i++){ |
|
|
|
switch (i) { |
|
|
|
case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: |
|
|
|
math_fact_lie(i); |
|
|
|
char user_answer[5]; |
|
|
|
scanf("%s", user_answer); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -863,7 +873,6 @@ void math_introduction(){ |
|
|
|
|
|
|
|
if( input1 == 1 ){ |
|
|
|
math_question2(); |
|
|
|
math_fact_lie_print(); |
|
|
|
} else{ |
|
|
|
printf("\t\t-------------------------------------------------------\n"); |
|
|
|
printf("\t\t Sorry to see you go.\n "); |
|
|
@ -882,6 +891,11 @@ void for_loop_print_question(char mathQuestions[][140], char mathPossible[][140] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void math_quiz_option(){ |
|
|
|
math_introduction(); |
|
|
|
math_fact_lie_print(); |
|
|
|
} |
|
|
|
|
|
|
|
//-------brain_whiz_quiz_end-------------- |
|
|
|
|
|
|
|
|
|
|
@ -3475,7 +3489,7 @@ int main(int argc, char *argv[]) { |
|
|
|
jump_to_menu = 1; |
|
|
|
break; |
|
|
|
case 21: |
|
|
|
math_introduction(); |
|
|
|
math_quiz_option(); |
|
|
|
jump_to_menu = 1; |
|
|
|
break; |
|
|
|
case 22: |
|
|
|