8 lines
126 B
C
8 lines
126 B
C
int fibo(int n) {
|
|
if (n <= 1) {
|
|
return n;
|
|
} else {
|
|
return fibo(n - 1) + fibo(n - 2);
|
|
}
|
|
}
|
|
fibo(15); |