What? You mean to say if you get between 54 and 40 you get a "d" and an "f" isn't until you get below a 40! Man teachers are getting soft.
First things first though. It would help if you wrapped your code in the code tag. It just makes it easier to read.
Now to your code. In your else if statement you left off the "grades", try this:
else if (grades >= 40 && grades <= 54)
I need to work on punctuation.
- jamesy likes this