Browse Source

Stores user's name

main
fdlt3859 2 years ago
parent
commit
06ccdd5c84
  1. 6
      src/main/quizproject.c

6
src/main/quizproject.c

@ -15,6 +15,12 @@ void displayWelcomeMessage(void) {
char startGame; char startGame;
scanf("%c", &startGame); scanf("%c", &startGame);
startGame = toupper(startGame); startGame = toupper(startGame);
if (startGame != ' ') {
char name[100] = {0};
printf("\t\t Please enter your First Name \n");
scanf("%s", name);
}
} }

Loading…
Cancel
Save