home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
Chip_2004-04_cd1.bin
/
program
/
java
/
download
/
Operatory.java
< prev
Wrap
Text File
|
2004-02-13
|
902b
|
24 lines
public class Operatory {
public static void main(String[] args) {
int a = 10;
int b = 15;
int c;
boolean bool = true;
c = a * b;
System.out.println(c);
if (a == b || b == 15) System.out.println("Prvni podminka splnena");
if (a != b && b == 15) System.out.println("Druha podminka splnena");
if (a >= b) System.out.println("Treti podminka splnena");
if (! (a >= b)) System.out.println("Ctvrta podminka splnena");
if (bool) System.out.println("Pata podminka splnena");
if (! bool) System.out.println("Sesta podminka splnena");
if (a == b || b == c || a == c || bool) System.out.println("Sedma podminka splnena");
if (c < a && (bool = b < a)) System.out.println("Osma podminka splnena");
// if (c < a & (bool = b < a)) System.out.println("Osma podminka splnena");
System.out.println(bool);
}
}