Retornando fibonacci

This commit is contained in:
Carlos cristovao guerreiro scantbelruy 2022-10-28 09:11:28 -04:00
parent 5aebe7e4f9
commit 5181e18b04

View File

@ -1,4 +1,6 @@
export function fibonacci(value) { export function fibonacci(value) {
// implementar logica aqui if(value < 2) {
return value
}
return fibonacci(value - 1) + fibonacci(value - 2)
} }