Browse Source

Added a score grading system (v_AllAboutSpace)

main
fdlt3859 2 years ago
parent
commit
67be641f46
  1. 9
      src/main/quizproject.c

9
src/main/quizproject.c

@ -3001,7 +3001,14 @@ void v_allaboutspace(void){
printf("\nIncorrect\n"); printf("\nIncorrect\n");
} }
printf("\nYour score is: %d\n", space_score);
printf("\nYour score is: %d\n\n", space_score);
if (space_score == 5) {
printf("\nCongratulations! You are ready to take off!\n\n");
} else if (space_score >= 3) {
printf("\nGood job! But you need some more training before you venture into space.\n\n");
} else {
printf("\nYou tried... but time to study more about Space!\n\n");
}
} }

Loading…
Cancel
Save