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]); printf("%s\n",answers[million_i][j]);
} }
point_one:
printf("Enter a valid Response: "); printf("Enter a valid Response: ");
scanf(" %c", &million_user_answers[million_i]); scanf(" %c", &million_user_answers[million_i]);
million_user_answers[million_i] = toupper(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]); printf("\nYou inputed %c\n", million_user_answers[million_i]);
break; break;
default: default:
printf("\nInvalid Input\n");
goto point_one;
} }
million_i++; million_i++;

Loading…
Cancel
Save