This commit is contained in:
Mykola Fesenko
2025-07-29 08:08:23 +02:00
commit 899a05907b
355 changed files with 11002 additions and 0 deletions

25
3/Verzweigung.java Normal file
View File

@@ -0,0 +1,25 @@
public class Verzweigung {
public static void main(String args[]) {
int alter = 30;
if(alter <= 20) {
System.out.println("Du bist noch jung");
}
else if (alter < 30) {
System.out.println("ISt noch ok!");
}
else if (alter < 40) {
System.out.println("Grenzwertig :-P");
}
else if (alter < 50) {
System.out.println("Die Rente ist in sicht");
}
else if (alter < 60) {
System.out.println("Bist du baer alt");
}
else {
System.out.println("Na, ganz frish");
} // end of if-else
}
}