SHARE
TWEET

Untitled

a guest Sep 16th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2.  
  3. public class Tugas {
  4.  
  5.     public static void main(String[] args) {
  6.         int panjang;
  7.         int lebar;
  8.         int hasil;
  9.  
  10.         Scanner keyboard = new Scanner(System.in);
  11.        
  12.        
  13.  
  14.         System.out.print("panjang: ");
  15.         panjang = keyboard.nextInt();
  16.         System.out.print("lebar: ");
  17.         lebar = keyboard.nextInt();
  18.        
  19.           // perkalian
  20.         hasil = panjang * lebar;
  21.         System.out.print("====Hasil=====");
  22.        
  23.        
  24.        
  25.     }
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top