7 lines
99 B
Text
7 lines
99 B
Text
int
|
|
fibRec(int n) {
|
|
if (n < 2) {
|
|
return(1);
|
|
}
|
|
return( fib(n-2) + fib(n-1) );
|
|
}
|