Previous Next
0 / 15
Module DEMO-33-65DEMO-OOP-33

Pass Or Repeat

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Read one mark and print PASS when the mark is at least 50, otherwise print REPEAT.

Input Format

Input is given as whitespace-separated tokens in this order:

  1. student mark

Output Format

Print the exact report in this order:

  1. Decision

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
70
Decision: PASS
Input: student mark = 70.
Key calculation(s): String decision | if (70 >= 50) { | "Decision: " + decision = "Decision: PASS".
Output:
Decision: PASS
Sample #2
Public sample
50
Decision: PASS
Input: student mark = 50.
Key calculation(s): String decision | if (50 >= 50) { | "Decision: " + decision = "Decision: PASS".
Output:
Decision: PASS

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings