feat: adicionando solução do 4° desafio

This commit is contained in:
Ana Carolina Duarte Cavalcante 2022-10-28 08:18:37 -03:00
parent d8ba6787ab
commit b623b716a9

View File

@ -1,4 +1,5 @@
export function fibonacci(value) {
// implementar logica aqui
var sqrt5 = Math.sqrt(5);
return Math.round(Math.pow(((1 + sqrt5) / 2), value) / sqrt5);
}