You are on page 1of 1

/*

* To change this template, choose Tools | Templates


* and open the template in the editor.
*/
package latihanmio2;
import java.util.Scanner;
/**
*
* @author kiki
*/
public class Latihanmio2 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner sc = new Scanner(System.in);
int Jmlh, Hrg, TTL;
System.out.println("Masukkan jumlah barang : ");
Jmlh = sc.nextInt();
System.out.println("masukkan harga barang");
Hrg = sc.nextInt();
TTL = Hrg*Jmlh;
System.out.println("TOTAL BAYAR"+TTL);
if (TTL >= 50000){
System.out.println("TOTAL BAYAR STELAH DISKON
)/100)));
} else if (TTL >= 100000){
System.out.println("TOTAL BAYAR STELAH DISKON
)/100)));
} else if (TTL >= 200000){
System.out.println("TOTAL BAYAR STELAH DISKON
)/100)));
}
if (Jmlh>=50);
System.out.println("DISKON BAYAR SETELAH BAYAR :
0))));

: Rp"+ (TTL - ((TTL*25


: Rp"+ (TTL - ((TTL*10
: Rp"+ (TTL - ((TTL*15

Rp"+ (TTL - ((TTL*5/10

You might also like