feat(desafio): Adiciona quarta tarefa concluida #3

Merged
ManuelaLuanaSchumackerTavares merged 1 commits from feature/fibonacci into feature/algoritmo 2022-10-28 18:03:29 +00:00
Showing only changes of commit f1125c7604 - Show all commits

View File

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