c-repl/example/fibonacci_rec.c

9 lines
128 B
C
Raw Normal View History

2024-01-12 13:37:52 +01:00
int fibo(int n) {
if (n <= 1) {
return n;
} else {
return fibo(n - 1) + fibo(n - 2);
}
}
fibo(15);;