Skip to content
CampusEduX

Pass or Fail (Ternary)

Easyjava
Learn the Concept: Ternary Operator

Read a mark and print Pass if it is at least 35, otherwise Fail. Use the ternary operator.

Input: one integer — the mark.

Output: one line — Pass or Fail.

Related Problems

Input (stdin)

Output

Run your code to see output here...