From 9c00a1413213d291a2c9ea88f62bcef6a37d7789 Mon Sep 17 00:00:00 2001 From: fdlt3917 Date: Mon, 30 Jan 2023 13:14:56 +0000 Subject: [PATCH] added answer options - Millionaire --- src/main/quizproject.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 8103033..d0678e1 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -452,9 +452,17 @@ void play_milliongame() { "Who was the first president of the United States?", "Which team won the most NBA championships?" }; + char answers[round][4][256] = { + { "A) Berlin", "B) Paris", "C) London", "D) Rome" }, + { "A) George Washington", "B) John Adams", "C) Thomas Jefferson", "D) James Madison" }, + { "A) Los Angeles Lakers", "B) Chicago Bulls", "C) Golden State Warriors", "D) Boston Celtics" }, + }; while(million_i < round){ printf("\n%s\n",questions[million_i]); + for(int j=0;j<4;j++){ + printf("%s\n",answers[million_i][j]); + } million_i++; } // code for game 3 goes here