feat: Adiciona o código do desafio 4
This commit is contained in:
parent
eff82acf6d
commit
a847d93559
@ -1,4 +1,7 @@
|
||||
export function fibonacci(value) {
|
||||
// implementar logica aqui
|
||||
let phi = (1 + Math.sqrt(5))/2;
|
||||
let asymp = Math.pow(phi, value) / Math.sqrt(5);
|
||||
|
||||
return Math.round(asymp);
|
||||
}
|
Loading…
Reference in New Issue
Block a user