c-repl/example/fibonacci_rec.c
2024-01-18 12:00:34 +01:00

8 lines
126 B
C

int fibo(int n) {
if (n <= 1) {
return n;
} else {
return fibo(n - 1) + fibo(n - 2);
}
}
fibo(15);