Browse Source

scan user answers - million game

main
fdlt3917 2 years ago
parent
commit
11a58a48c5
  1. 5
      src/main/quizproject.c

5
src/main/quizproject.c

@ -589,6 +589,7 @@ void play_milliongame() {
printf("Playing who wants to be a millionaire...\n"); printf("Playing who wants to be a millionaire...\n");
int million_i = 0; int million_i = 0;
char million_user_answers[round];
char million_std_answers[round] = {'B', 'A', 'A'}; char million_std_answers[round] = {'B', 'A', 'A'};
char questions[round][256] = { char questions[round][256] = {
@ -607,6 +608,10 @@ void play_milliongame() {
for(int j=0;j<4;j++){ for(int j=0;j<4;j++){
printf("%s\n",answers[million_i][j]); printf("%s\n",answers[million_i][j]);
} }
printf("Enter a valid Response: ");
scanf(" %c", &million_user_answers[million_i]);
million_i++; million_i++;
} }
// code for game 3 goes here // code for game 3 goes here

Loading…
Cancel
Save