Ok, I'm working on code for a project, and I need to know how to use the if statements for if/else if/else with multiple conditions. This is the info I have to code:
>= 89.5 A
79.5 – 89.49 B
69.5 – 79.49 C
59.5 – 69.49 D
<= 59.49 F
This is my code:
avg_grade = (grade1 + grade2 + grade3 + grade4 + grade5)/5;
The code works, but once I get to the third condition they don't execute the court command. They just repeat the command from the second condition. Thanks in advance for any help.