Jumat, 05 April 2013

Contoh Program Java Relasional


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



    int a=5, b=10;

    System.out.println("a == b bernilai " + (a == b));
    System.out.println("a != b bernilai " + (a != b));
    System.out.println("a > b bernilai " + (a > b));
    System.out.println("a < b bernilai " + (a < b));
    System.out.println("a >= b bernilai " + (a >= b));
    System.out.println("a <= b bernilai " + (a <= b));
  }
}

Tidak ada komentar:

Posting Komentar