Advertisement
Guest User

Bill H1051191088

a guest
Sep 16th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement