Browse Source

Refactoring: Added Question 4 (v_AllAboutSpace)

main
fdlt3859 2 years ago
parent
commit
fa035221d3
  1. 18
      src/main/quizproject.c

18
src/main/quizproject.c

@ -2967,10 +2967,24 @@ void v_allaboutspace(void){
printf("\nEnter your answer: ");
scanf("%d", &space_answer);
if (space_answer == 1) {
printf("Correct!\n");
printf("\nCorrect!\n");
space_score++;
} else {
printf("Incorrect\n");
printf("\nIncorrect\n");
}
printf("\nQuestion 4: What is the name of the first man to walk on the Moon?\n\n");
printf("1. Neil Armstrong\n");
printf("2. Buzz Aldrin\n");
printf("3. Yuri Gagarin\n");
printf("4. Valentina Tereshkova\n");
printf("\nEnter 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);

|||||||
100:0
Loading…
Cancel
Save