Browse Source

million game - valid response loop

main
fdlt3917 2 years ago
parent
commit
742a038d84
  1. 4
      src/main/quizproject.c

4
src/main/quizproject.c

@ -609,6 +609,8 @@ void play_milliongame() {
printf("%s\n",answers[million_i][j]);
}
point_one:
printf("Enter a valid Response: ");
scanf(" %c", &million_user_answers[million_i]);
million_user_answers[million_i] = toupper(million_user_answers[million_i]);
@ -627,7 +629,7 @@ void play_milliongame() {
printf("\nYou inputed %c\n", million_user_answers[million_i]);
break;
default:
printf("\nInvalid Input\n");
goto point_one;
}
million_i++;

Loading…
Cancel
Save