Browse Source

switching user input tested

main
fdlt3917 2 years ago
parent
commit
f03e4a3988
  1. 17
      src/main/quizproject.c

17
src/main/quizproject.c

@ -613,6 +613,23 @@ void play_milliongame() {
scanf(" %c", &million_user_answers[million_i]);
million_user_answers[million_i] = toupper(million_user_answers[million_i]);
switch(million_user_answers[million_i]){
case 'A':
printf("\nYou inputed %c\n", million_user_answers[million_i]);
break;
case 'B':
printf("\nYou inputed %c\n", million_user_answers[million_i]);
break;
case 'C':
printf("\nYou inputed %c\n", million_user_answers[million_i]);
break;
case 'D':
printf("\nYou inputed %c\n", million_user_answers[million_i]);
break;
default:
printf("\nInvalid Input\n");
}
million_i++;
}
// code for game 3 goes here

|||||||
100:0
Loading…
Cancel
Save