From c57a68aa2287399f7e9c539f13267cf762d179d5 Mon Sep 17 00:00:00 2001 From: fdlt3859 Date: Thu, 9 Feb 2023 00:39:41 +0000 Subject: [PATCH] Refactoring: Added Question 5 (v_AllAboutSpace) --- src/main/quizproject.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/quizproject.c b/src/main/quizproject.c index 8c990ac..2643e3a 100644 --- a/src/main/quizproject.c +++ b/src/main/quizproject.c @@ -2986,6 +2986,20 @@ void v_allaboutspace(void){ } else { printf("\nIncorrect\n"); } + + printf("\nQuestion 5: What is the name of the first successful interplanetary probe?\n\n"); + printf("1. Pioneer 10\n"); + printf("2. Mariner 2\n"); + printf("3. Viking 1\n"); + printf("4. Luna 1\n"); + printf("Enter your answer: "); + scanf("%d", &space_answer); + if (space_answer == 1) { + printf("\nCorrect!\n"); + space_score++; + } else { + printf("\nIncorrect\n"); + } printf("\nYour score is: %d\n", space_score); }