005-001-004

If Statement: Pass/Fail Judgment Program

Easy

Problem Description

if statement: Pass/Fail Judgment Program

In this problem, you will create a program that reads a test score as input, uses an if statement to determine whether it is 60 or above, and displays the pass/fail result to standard output.

Learning Objective: Learn pass/fail judgment using if statements

Create a program that inputs test score and displays "Pass" if 60 or more, otherwise "Fail".

Input

Line 1: Test score (integer)

Output

If 60 or more:

Score: [score]
Pass
```java

If less than 60:
```java
Score: [score]
Fail

Ready to Try Running Code?

Log in to access the code editor and execute your solutions for this problem.

Don't have an account?

Sign Up