SHARE
TWEET

Kalkulator Lele By restu VH

a guest Oct 12th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2.  
  3.     public class KalkulatorLele {
  4.    
  5.     public static void main (String args []) {
  6.  
  7.     Scanner inputData = new Scanner(System.in);
  8.  
  9.    
  10.     System.out.print("Jenis Lele:");
  11.     String jenis = inputData.nextLine();
  12.    
  13.     System.out.print("Harga Lele Satuan:");
  14.     int harga = inputData.nextInt();
  15.    
  16.     System.out.print("Jumlah Lele:");
  17.     int jumlah = inputData.nextInt();
  18.  
  19.    
  20.     System.out.println(" ");
  21.    
  22.     System.out.println("====== Kalkulator Lele =======");
  23.    
  24.     System.out.println(" ");
  25.    
  26.  
  27.     System.out.println("Total Harga Lele Rp:"+ (harga*jumlah));
  28.    
  29.     //@Restu Van Halen
  30. }
  31.  
  32. }
RAW Paste Data
Top