Assalamualaikum..huhuhu ok hari ni sy up date blog kt kls..hahahhaa
ap lh sy ni kn...erm sbnr nyer sy tension!!
tension sebb wt JAVA!! hah! sekali lg coding!! hahahaha
erm ok sy nk share ap yg sy dh coding kt korng smue k! huh!
public class hasil_jualan_burger {
public static void main(String[]args){
int burger_daging,burger_ayam,burger_telur;
double jumlah;
Scanner sc;//baca input dari pengguna
sc=new Scanner(System.in);
System.out.println("======================");
System.out.println("Jenis Burger dan Caj");
System.out.println("====================== ");
System.out.println("Burger Daging-RM1.20");
System.out.println("Burger Ayam-RM1.50");
System.out.println("Burger Telur-RM0.50");
System.out.println("Jumlah Kutipan Hari Ini");
System.out.println("====================== ");
System.out.print("Burger Daging :");
burger_daging=sc.nextInt();
System.out.print("Burger Ayam :");
burger_ayam=sc.nextInt();
System.out.print("Burger Telur :");
burger_telur=sc.nextInt();
System.out.println("====================== ");
jumlah=(burger_daging*1.20)+(burger_ayam*1.50)+(burger_telur*0.50);
System.out.println("Hasil Jualan:RM"+jumlah);
}
}
ok sesape yg dh ad intsller JAVA bole lh try ..tp jgn lupe save file dulu hahahaha nnt kang slh lk kn..huhuhu
ok bye!
#_#
No comments:
Post a Comment