Browse Source

Displays score and added quest3 (v_AllAboutSpace)

main
fdlt3859 2 years ago
parent
commit
eb0ad00e1f
  1. 16
      src/main/quizproject.c

16
src/main/quizproject.c

@ -2958,6 +2958,22 @@ void v_allaboutspace(void){
} else { } else {
printf("\nIncorrect\n"); 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);
} }

Loading…
Cancel
Save