005-002-004

If-Else Statement: Grade Evaluation

Easy

Problem Description

If-Else Statement: Grade Evaluation

Learning Objective: Understand conditional branching using if-else statements

Create a program that inputs a score and determines and outputs the grade.

Grading Criteria

  • 80 or above: A
  • 60 to 79: B
  • Below 60: C

Input

Line 1: Score (integer 0-100)

Output

Score: [score]
Grade: [grade]
```java

## Example
Input:
```java
85
```java
Output:
```java
Score: 85
Grade: A

Test Cases

※ Output examples follow programming industry standards

Input:
85
Expected Output:
Score: 85
Grade: A
Input:
65
Expected Output:
Score: 65
Grade: B
Input:
80
Expected Output:
Score: 80
Grade: A
❌ 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 5 free executions remaining