Dateien nach "/" hochladen
This commit is contained in:
commit
03ab073e38
34
Uebungen0304.java
Normal file
34
Uebungen0304.java
Normal file
@ -0,0 +1,34 @@
|
||||
|
||||
public class Uebungen0304 {
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hallo Welt."); // Aufgabe 1
|
||||
|
||||
|
||||
int i = 5;
|
||||
int j = 3;
|
||||
boolean b = false;
|
||||
System.out.println("Aufgabe 4 a:");
|
||||
System.out.println((!((i<j) && b)));
|
||||
|
||||
System.out.println("Aufgabe 4 b:");
|
||||
System.out.println(i/j);
|
||||
|
||||
System.out.println("Aufgabe 4 c:");
|
||||
System.out.println((float) (i/j));
|
||||
|
||||
System.out.println("Aufgabe 4 d:");
|
||||
System.out.println((float) i / (float) j);
|
||||
|
||||
System.out.println("Aufgabe 4 e:");
|
||||
System.out.println((float) i / (float) j);
|
||||
|
||||
System.out.println("Aufgabe 4 f:");
|
||||
System.out.println((i++ == 5 || (--i == 5)));
|
||||
|
||||
System.out.println("Aufgabe 4 g:");
|
||||
System.out.println(((i++ == 5) | (--i ==5)));
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user