This commit is contained in:
2026-03-18 00:46:30 -07:00
commit 56b1607ec5
316 changed files with 266132 additions and 0 deletions

16
java/Recursion.java Normal file
View File

@@ -0,0 +1,16 @@
public class Recursion {
public static void main(String[] args) {
int x = 169;
int y = 2;
System.out.println(recurse(x, y));
}
public static int recurse(int x, int y) {
if (x < y) {
return x;
} else {
return recurse(x - y, y);
}
}
}