export function fibonacci(value) {
// implementar logica aqui
let fibMenor1 = 0;
let fibMenor2 = 1;
let fibN = 0;
if(value < 2){
return value;
}
for (let i = 1; i <= value; i++){
fibN = fibMenor1 + fibMenor2;
fibMenor2 = fibMenor1;
fibMenor1 = fibN;
return fibN;