SHARE
TWEET

Bill H1051191088

a guest Sep 16th, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Operator {
  2.  
  3.     public static void main(String[] args) {
  4.        // Operator Aritmatika
  5.         int a=10;
  6.         int b=20;
  7.         int c=40;
  8.         double tambah = a+b;
  9.         double kurang = c-b;
  10.         double kali = c*a;
  11.         double bagi = a/b;
  12.         System.out.println("Penjumlahan : "+tambah);
  13.         System.out.println("Pengurangan : "+kurang);
  14.         System.out.println("Perkalian : "+kali);
  15.         System.out.println("Pembagian : "+bagi);
  16.     }  
  17. }
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