004-001-002

If Statement: Pass/Fail Determination

Easy

Problem Description

If Statement: Pass/Fail Determination

Learning Objective: Distribute two results with if statement

Determine pass/fail from test score. Pass if 60 or higher, fail if lower.

Input

Line 1: Score (integer)

Output

If 60 or higher:

Score: [score] pts
Pass
```java
If lower than 60:
```java
Score: [score] pts
Fail

Test Cases

※ Output examples follow programming industry standards

Input:
75
Expected Output:
Score: 75 pts
Pass
Input:
45
Expected Output:
Score: 45 pts
Fail
Input:
60
Expected Output:
Score: 60 pts
Pass
❌ Some tests failed
❌ エラー発生

Your Solution

Current Mode: My Code
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Write your code here

sc.close();
}
}
0 B / 5 MB

You have 10 free executions remaining