diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-09-29 18:11:12 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-09-29 18:11:12 +0200 |
| commit | 28b57122657fb573fe5f9e11e85fb6a3f3d67678 (patch) | |
| tree | 6c4a8be612e34f02ff8c04777944f4ad6ccc63f4 /Info/12/Rekursion/Rekursion.java | |
| parent | 8847096b7aae6a14d9527aa8505212016426bfe5 (diff) | |
| download | unterricht-28b57122657fb573fe5f9e11e85fb6a3f3d67678.tar.gz unterricht-28b57122657fb573fe5f9e11e85fb6a3f3d67678.zip | |
move recursion material
Diffstat (limited to 'Info/12/Rekursion/Rekursion.java')
| -rw-r--r-- | Info/12/Rekursion/Rekursion.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Info/12/Rekursion/Rekursion.java b/Info/12/Rekursion/Rekursion.java new file mode 100644 index 00000000..cbc1d6b5 --- /dev/null +++ b/Info/12/Rekursion/Rekursion.java @@ -0,0 +1,13 @@ +class Rekursion { + public static void main(String argv[]) { + get(0); + } + + public static void get(int x) { + if (x == 6) + System.out.println("Code:"); + if (x < 6) + get(x+=2); + System.out.println(x); + } +} |
