feat: Algoritmo 06-sum - finalizado

This commit is contained in:
José Carlos Lins 2022-10-27 20:27:38 -03:00
parent 9b98258cab
commit 7618f902f2

View File

@ -1,4 +1,11 @@
export function sum(values) { export function sum(values) {
// implementar logica aqui // implementar logica aqui
let soma = 0;
for(let i = 0; i < values.length; i++){
soma += values[i];
}
return soma;
} }