6 lines
88 B
Text
6 lines
88 B
Text
func fib(n) {
|
|
if (n < 2) {
|
|
return 1;
|
|
}
|
|
return fib(n - 1) + fib(n - 2);
|
|
}
|