Merge branch 'feature/sumeven' into development

This commit is contained in:
Marcello Rodrigues Martins 2022-10-31 18:35:58 -03:00
commit 565e6d9ab0

View File

@ -1,5 +1,6 @@
export function sumEven(value) { export function sumEven(value) {
// implementar logica aqui // implementar logica aqui
let resposta = 0
value.forEach(element => { value.forEach(element => {
if(element % 2 === 0) if(element % 2 === 0)
resposta += element resposta += element