feat: 06-sum

This commit is contained in:
Adilson Fernando Neves Ornellas 2022-10-29 00:28:27 -03:00
parent df485c8387
commit 85e50ecc66

View File

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