005-001-007
if文:割引判定
初級
問題説明
テストケース例
※ 出力例はプログラミングの国際標準に準拠し英語で表示しています
入力:
6000
期待される出力:
Purchase amount: 6000 yen Discount applied
入力:
3000
期待される出力:
Purchase amount: 3000 yen Regular price
入力:
5000
期待される出力:
Purchase amount: 5000 yen Discount applied
入力:
100
期待される出力:
Purchase amount: 100 yen Regular price
❌ テストに失敗したケースがあります
あなたの解答
現在のモード:● 自分のコード
99
1
2
3
4
5
6
7
8
9
10
›
⌄
⌄
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// ここにコードを書いてください
sc.close();
}
}
0 B / 5 MB
残り 8 回実行可能
