From eb0ad00e1f0bf3d7029f71a943c4807577931641 Mon Sep 17 00:00:00 2001 From: fdlt3859 Date: Thu, 9 Feb 2023 00:31:44 +0000 Subject: [PATCH] Displays score and added quest3 (v_AllAboutSpace) --- src/main/quizproject.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index eb2ab4d..6104a6c 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -2958,6 +2958,22 @@ void v_allaboutspace(void){ } else { printf("\nIncorrect\n"); } + + printf("\nQuestion 3: What is the name of the first man-made satellite to be launched into space?\n\n"); + printf("1. Sputnik 1\n"); + printf("2. Apollo 11\n"); + printf("3. Vostok 1\n"); + printf("4. Explorer 1\n"); + printf("\nEnter your answer: "); + scanf("%d", &space_answer); + if (space_answer == 1) { + printf("Correct!\n"); + space_score++; + } else { + printf("Incorrect\n"); + } + + printf("\nYour score is: %d\n", space_score); }