package tugasbp2;
import java.util.Scanner;
public class TugasBP2 {
public static void main(String[] args) {
Scanner input = new Scanner (System.in);
import java.util.Scanner;
public class TugasBP2 {
public static void main(String[] args) {
Scanner input = new Scanner (System.in);
int harga,jumlah, total, diskon;
System.out.print("Masukkan Harga Barang : ");
harga = input.nextInt();
System.out.print("Masukkan Jumlah Barang : ");
jumlah = input.nextInt();
total = jumlah * harga;
if (total >= 200000) {
diskon = (total * 15) / 100;
total = total - diskon;
System.out.println("Diskon = 15%\n");
}else if(total >= 100000) {
diskon = (total * 10) / 100;
total = total - diskon;
System.out.println("Diskon = 10%\n");