SHARE
TWEET

Untitled

a guest Sep 16th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class OperatorPembanding {
  2.    public static void main(String[] args) {
  3.    
  4.       //membuat variabel
  5.       int nilaiA = 12;
  6.       int nilaiB = 4;
  7.       boolean hasil;
  8.    
  9.       //mencetak pada layar
  10.       hasil = nilaiA > nilaiB;
  11.       System.out.println(hasil);
  12.       hasil = nilaiA < nilaiB;
  13.       System.out.println(hasil);
  14.       hasil = nilaiA >= nilaiB;
  15.       System.out.println(hasil);
  16.       hasil = nilaiA <= nilaiB;
  17.       System.out.println(hasil);
  18.    }
  19. }
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