feature/algoritmo #11

Merged
ManuelaLuanaSchumackerTavares merged 21 commits from feature/algoritmo into master 2022-10-31 17:24:28 +00:00
Showing only changes of commit a69e44adbb - Show all commits

View File

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