forked from M3-Academy/challenge-algorithms-v2.0
feat: Adiciona 06-sum
This commit is contained in:
parent
63486a6394
commit
883dd4534b
@ -1,4 +1,11 @@
|
||||
export function sum(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
var resultSoma = 0
|
||||
|
||||
for (var cont = 0; cont < values.length; cont++) {
|
||||
resultSoma += values[cont]
|
||||
}
|
||||
return resultSoma
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user