logo CodeStepByStep logo

percentage_grade

Language/Type: PHP basics if/else interactive programs

What's wrong with the following code? Modify it to produce the intended output. Make sure to properly utilize if/else/if statements to a redundancy and a unnecessary tests. Do not use && or || in your solution.

What percentage did you earn? 87
You got a B!
Bare code: Write a fragment of PHP code as described, without any class or function/method heading around your code.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.