← Unit 2 · all exercises
Saved in this browser only

Pass or fail

A score of 60 or more is a pass. Return the word "Pass" or the word "Fail".

String grade(int score)

Solution.java
Loading editor…
Results

Examples

  • grade(75) → Pass
  • grade(40) → Fail

There are also 4 hidden tests you can't see. Solve the problem, not the examples.