Postingan

Menampilkan postingan dari September, 2022

LATIHAN PEMROGRAMAN SEKUENSIAL

Gambar
Nama : muhammad usamah zaky Kelas : E NPM : 22082010205  public static void main(String[] args) {         Scanner sc = new Scanner(System.in);                  int beratberas, hargaberas, totalbiaya, hargadiskon, hargasetelahdiskon, jumlahuang, uangkembalian;                  System.out.println("warung beras abi");          System.out.print("Masukkan Berat Beras(kg): ");         beratberas = sc.nextInt();         System.out.print("masukkan harga beras per kg: ");         hargaberas = sc.nextInt();         totalbiaya = beratberas*hargaberas;         System.out.println("total biaya pembayaran : "+totalbiaya);         hargadiskon = totalbiaya*5/100;         hargasetelahdiskon = totalbiaya-hargadiskon;    ...
Gambar
 /*  * To change this license header, choose License Headers in Project Properties.  * To change this template file, choose Tools | Templates  * and open the template in the editor.  */ package javaapplication1; /**  *  * @author usama  */ public class JavaApplication1 {     /**      * @param args the command line arguments      */     public static void main(String[] args) {         System.out.println("hallo,word.");         System.out.println("Aku cinta indonesia");         // TODO code application logic here     }      }