Skip to content

Added fixed version of student grading quiz as fix_quiz.c #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amr2007
Copy link

@amr2007 amr2007 commented Jun 10, 2025

This pull request adds a corrected version of the "Quick Quiz" program from Chapter 3.

Changes made:

  • Created a new file named fix_quiz.c
  • Fixed the grading logic based on the correct mark ranges:
    • 90–100 : Grade A
    • 80–89 : Grade B
    • 70–79 : Grade C
    • 60–69 : Grade D
    • 50–59 : Grade E
    • Below 50 : Grade F
  • Used scanf to take marks as input from the user
  • Added printf to display the calculated grade

This version avoids overlapping or incorrect conditions and ensures accurate output based on the given grading criteria.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants