From 6274b2ee992aa5ee63c7928f093561b6a8fa1492 Mon Sep 17 00:00:00 2001 From: fdlt3859 Date: Thu, 9 Feb 2023 00:15:31 +0000 Subject: [PATCH] Added menu (v_AllAboutSpace) --- src/main/quizproject.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 7bd42ab..83c9677 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -2917,9 +2917,15 @@ void v_play_horoscope(void) { void v_allaboutspace(void){ char spacename[20]; + int spacechoice; printf("\nEnter your Astronaut name: \n"); scanf("%s", spacename); printf("\nHello, Commander %s! Pleased to have you onboard.\n\n", spacename); + printf("Main Menu\n"); + printf("1. Start the Quiz!\n"); + printf("2. Quit\n"); + printf("Enter your choice: "); + scanf("%d", &spacechoice); }