Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

Monday, February 27, 2017

Contoh Program Operator Perbandingan Pada Java



Contoh Program Operator Perbandingan Pada Java
Source Code :

public class perbandingan {
public static void main (String [] args) {

System.out.println("Pebandingan");

int x=50, y=90;

System.out.println("x = 50\ny = 90");
System.out.println("X==Y :"+(x==y));
System.out.println("X!=Y :"+(x!=y));
System.out.println("XSystem.out.println("X>Y :"+(x>y));
System.out.println("X<=Y :"+(x<=y));
System.out.println("X>+Y :"+(x>=y));

}
}

Output :