From f03e4a3988e2930d5f43b928f8e822f1a7926fb6 Mon Sep 17 00:00:00 2001 From: fdlt3917 Date: Tue, 31 Jan 2023 11:29:39 +0000 Subject: [PATCH] switching user input tested --- src/main/quizproject.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index ac3f10a..900e6fc 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -613,6 +613,23 @@ void play_milliongame() { scanf(" %c", &million_user_answers[million_i]); million_user_answers[million_i] = toupper(million_user_answers[million_i]); + switch(million_user_answers[million_i]){ + case 'A': + printf("\nYou inputed %c\n", million_user_answers[million_i]); + break; + case 'B': + printf("\nYou inputed %c\n", million_user_answers[million_i]); + break; + case 'C': + printf("\nYou inputed %c\n", million_user_answers[million_i]); + break; + case 'D': + printf("\nYou inputed %c\n", million_user_answers[million_i]); + break; + default: + printf("\nInvalid Input\n"); + } + million_i++; } // code for game 3 goes here