feat: Adiciona 06-sum

This commit is contained in:
Izabela Balizardo 2022-10-29 19:18:12 -03:00
parent 63486a6394
commit 883dd4534b

View File

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