humbertoferro #1

Merged
Humberto.Ferro merged 9 commits from humbertoferro into master 2022-10-31 21:34:30 +00:00
Showing only changes of commit 88441d9bf3 - Show all commits

View File

@ -1,4 +1,12 @@
export function sumEven(value) {
// implementar logica aqui
const pares = value;
var i;
let soma = 0;
for (i = 0; i <= pares.length; i++) {
if (pares[i] % 2 === 0) {
soma = soma + pares[i];
}
}
return soma;
}