VL-Programmieren/VL03/Aufgabe04/Aufgabe04.java

23 lines
596 B
Java
Raw Normal View History

2024-05-10 06:14:31 +00:00
package VL03.Aufgabe04;
/**
* Vorlesung 3 / Aufgabe 4
*
* @author Sebastian Brosch
*/
public class Aufgabe04 {
public static void main(String[] args) {
int i = 5;
int j = 3;
boolean b = false;
System.out.println("a.) " + (!((i < j) && b)));
System.out.println("b.) " + (i / j));
System.out.println("c.) " + (float) (i / j));
System.out.println("d.) " + ((float) i / j));
System.out.println("e.) " + ((float) i / (float) j));
System.out.println("f.) " + (((i++ == 5) || (--i == 5))));
System.out.println("g.) " + (((i++ == 5) | (--i == 5))));
}
}