Browse Source

Refactoring: Added Question 5 (v_AllAboutSpace)

main
fdlt3859 2 years ago
parent
commit
c57a68aa22
  1. 14
      src/main/quizproject.c

14
src/main/quizproject.c

@ -2986,6 +2986,20 @@ void v_allaboutspace(void){
} else { } else {
printf("\nIncorrect\n"); 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); printf("\nYour score is: %d\n", space_score);
} }

Loading…
Cancel
Save