From 11a58a48c5801ba637f311595c9e002de24f8488 Mon Sep 17 00:00:00 2001 From: fdlt3917 Date: Tue, 31 Jan 2023 10:59:23 +0000 Subject: [PATCH] scan user answers - million game --- src/main/quizproject.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 3f056e9..acfb663 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -589,6 +589,7 @@ void play_milliongame() { printf("Playing who wants to be a millionaire...\n"); int million_i = 0; + char million_user_answers[round]; char million_std_answers[round] = {'B', 'A', 'A'}; char questions[round][256] = { @@ -607,6 +608,10 @@ void play_milliongame() { for(int j=0;j<4;j++){ printf("%s\n",answers[million_i][j]); } + + printf("Enter a valid Response: "); + scanf(" %c", &million_user_answers[million_i]); + million_i++; } // code for game 3 goes here