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)))); } }