From 06ccdd5c8416b44fabf614b7a3f13474f40e1f0d Mon Sep 17 00:00:00 2001 From: fdlt3859 Date: Mon, 23 Jan 2023 10:52:50 +0000 Subject: [PATCH] Stores user's name --- src/main/quizproject.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 1bdfc29..e978b70 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -15,6 +15,12 @@ void displayWelcomeMessage(void) { char startGame; scanf("%c", &startGame); startGame = toupper(startGame); + if (startGame != ' ') { + char name[100] = {0}; + printf("\t\t Please enter your First Name \n"); + scanf("%s", name); + } + }