005-001-005

If Statement: Shipping Fee Program

Easy

Problem Description

If Statement: Shipping Fee Program

Learning Objective: Learn conditional branching using if statements

Create a program that inputs purchase amount and displays "Free" shipping if 3000 or more, otherwise "500".

Input

Line 1: Purchase amount (integer)

Output

If 3000 or more:

Amount: [amount]
Shipping: Free
```java

If less than 3000:
```java
Amount: [amount]
Shipping: 500

Test Cases

※ Output examples follow programming industry standards

Input:
5000
Expected Output:
Amount: 5000
Shipping: Free
Input:
3000
Expected Output:
Amount: 3000
Shipping: Free
Input:
1500
Expected Output:
Amount: 1500
Shipping: 500
❌ 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