Merge branch 'feature/06-sum' into developer

This commit is contained in:
Matheus Mariosa 2022-11-02 13:37:15 -03:00
commit 660dd6189b

View File

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