feature-algorithms #1

Merged
JoseGregorioMataRodriguez merged 10 commits from feature-algorithms into master 2022-10-29 04:37:09 +00:00
Showing only changes of commit 1ed22cb2fa - Show all commits

View File

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