diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 5bea590..8aee65a 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -660,7 +660,7 @@ void play_milliongame() { int million_i = 0, million_k = 0;; char million_user_answers[round]; char million_std_answers[round] = {'B', 'A', 'A'}; - int million_stay_in_game = 0; + int million_stay_in_game = 0, million_reward = 0; int million_lifeline_hint = 1, million_lifeline_delete = 1; char questions[round][256] = { @@ -693,6 +693,8 @@ void play_milliongame() { case 'A': if(million_user_answers[million_i] == million_std_answers[million_i]){ printf("\nCorrect!"); + million_reward = million_reward + (10000 * (million_i+1)); + printf("\n%d\n",million_reward); } else{ printf("\nIncorrect!"); @@ -701,6 +703,8 @@ void play_milliongame() { break; case 'B': if(million_user_answers[million_i] == million_std_answers[million_i]){ + million_reward = million_reward + (10000 * (million_i+1)); + printf("\n%d\n",million_reward); printf("\nCorrect!"); } else{ @@ -710,6 +714,8 @@ void play_milliongame() { break; case 'C': if(million_user_answers[million_i] == million_std_answers[million_i]){ + million_reward = million_reward + (10000 * (million_i+1)); + printf("\n%d\n",million_reward); printf("\nCorrect!"); } else{ @@ -719,6 +725,8 @@ void play_milliongame() { break; case 'D': if(million_user_answers[million_i] == million_std_answers[million_i]){ + million_reward = million_reward + (10000 * (million_i+1)); + printf("\n%d\n",million_reward); printf("\nCorrect!"); } else{