Browse Source

million game - compare user and std answers

main
fdlt3917 2 years ago
parent
commit
3bc63ddf6b
  1. 28
      src/main/quizproject.c

28
src/main/quizproject.c

@ -670,16 +670,36 @@ void play_milliongame() {
switch(million_user_answers[million_i]){
case 'A':
printf("\nYou inputed %c\n", million_user_answers[million_i]);
if(million_user_answers[million_i] == million_std_answers[million_i]){
printf("\nCorrect!");
}
else{
printf("\nIncorrect!");
}
break;
case 'B':
printf("\nYou inputed %c\n", million_user_answers[million_i]);
if(million_user_answers[million_i] == million_std_answers[million_i]){
printf("\nCorrect!");
}
else{
printf("\nIncorrect!");
}
break;
case 'C':
printf("\nYou inputed %c\n", million_user_answers[million_i]);
if(million_user_answers[million_i] == million_std_answers[million_i]){
printf("\nCorrect!");
}
else{
printf("\nIncorrect!");
}
break;
case 'D':
printf("\nYou inputed %c\n", million_user_answers[million_i]);
if(million_user_answers[million_i] == million_std_answers[million_i]){
printf("\nCorrect!");
}
else{
printf("\nIncorrect!");
}
break;
default:
goto point_one;

Loading…
Cancel
Save