Challenge: You Are The Teacher
Everyone knows that simple task of receiving a grade, and telling if the student:
- is approved,
- will attend the summer school, or
- failed.
In this challenge, you must write a program that does that, but using the maximum of one if
statement (also ternary operators count as if
).
The grade will be an integer from 0 to 10.
situation outputs
-------------------------
grade >= 7: Approved
grade >= 3: Summer School
grade < 3: Failed
You can do whatever you want, write in any language.
Fastest working answer wins.