some new things, mostly not working or finished

This commit is contained in:
2025-11-08 18:16:10 +01:00
parent 5792bfbd9a
commit 795fb42900
30 changed files with 4789 additions and 1 deletions

22
fib/fib.java Normal file
View File

@@ -0,0 +1,22 @@
public class recursive {
public static int fibonacci(int max) {
if (max <= 1) {
return max;
}
else {
return fibonacci(max - 2) + fibonacci(max - 1);
}
}
public static void main(String[] args) {
int max = 10;
for (int i = 0; i < max; i++) {
System.out.print(fibonacci(i) + " ");
}
}
}