Relasi Demo

package projectpbo1;
public class ProjectPBO1 {
public static void main(String[] args) { int i = 37;
int j = 42; int k = 42;
System.out.println("Nilaivariabel...");
System.out.println(" i = " + i);
System.out.println(" j = " + j);
System.out.println(" k = " + k);
System.out.println("Lebih besar dari...");
System.out.println(" i > j = " + (i > j));
System.out.println(" k > j = " + (k > j));
System.out.println("Lebih besar dari atau sama dengan...");
System.out.println(" i >= j = " + (i >= j));
System.out.println(" j >= i = " + (j >= i));
System.out.println("Lebih kecil dari...");
System.out.println(" i < j = " + (i < j));
System.out.println("Lebih kecil dari atau sama dengan...");
System.out.println(" j <= i = " + (j <= i));
System.out.println(" k <= j = " + (k <= j));
System.out.println("Sama dengan...");
System.out.println(" k == j = " + (k == j));
System.out.println("Tidak sama dengan...");
System.out.println(" k != j = " + (k != j));
}
}



Komentar

Postingan populer dari blog ini

Animasi Roket Sederhana dengan C++

Animasi Teks Berjalan C++

program C++ menampilkan daftar nama hewan sesuai abjad contoh array