feature/algoritmos #1

Merged
LeonardoPereiraRocha merged 10 commits from feature/algoritmos into master 2022-11-02 20:24:57 +00:00
Showing only changes of commit 25cbe458a0 - Show all commits

View File

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