lihat scrit dibawah ini untuk menentukan logikaAND
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Tama
*/
public class LAT4_LOGIKAAND {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
int a=62;
int b=67;
double x=12.3;
double y=1.5;
boolean hasil;
System.out.println("LOGIKA AND");
System.out.println("a<b && x>y = " + (true && true));
System.out.println("b++>a && x++<y = " + (true && false));
System.out.println("b--<a && x++<y = " + (false && true));
System.out.println("a=b && x=y = " + (false && false));
}
}
EmoticonEmoticon