Merge pull request 'feat(sum):adiciona resolucao questao06-sum' (#6) from feature/sum into development

Reviewed-on: #6
This commit is contained in:
Carlos Eduardo T. Winter 2022-10-28 19:08:27 +00:00
commit 060760803f

View File

@ -1,4 +1,8 @@
export function sum(values) { export function sum(values) {
// implementar logica aqui // implementar logica aqui
let res=0;
values.forEach(element => {
res+=element;
});
return res;
} }