SHARE
TWEET

Pniel Abednego Panogari Simanjuntak /Kelas C

a guest Sep 17th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;
  2. public class pniel {
  3.         public static void main (String args []){
  4.     Scanner niel = new Scanner(System.in);
  5.         int a, b, jumlah, kurang, kali, bagi;
  6.         System.out.println ("Masukkan bilangan 1 : ");
  7.         a = niel.nextInt ();
  8.         System.out.println ("Masukkan bilangan 2 : ");
  9.         b = niel.nextInt ();
  10.         jumlah = a+b;
  11.         kurang = a-b;
  12.         kali = a*b;
  13.         bagi =a/b;
  14.         System.out.println("penjumlahan :" +jumlah);
  15.         System.out.println("pengurangan :" +kurang);
  16.         System.out.println("perkalian " +kali);
  17.         System.out.println("pembagian :" +bagi);
  18.         }
  19.  
  20. }
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
 
Top