sum atualizado
This commit is contained in:
parent
a37a8bbebe
commit
2a50005c31
@ -1,4 +1,8 @@
|
||||
export function sum(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
let total = 0;
|
||||
for (let i = 0; i < values.length; i++) {
|
||||
total += values[i];
|
||||
}
|
||||
return total;
|
||||
}
|
Loading…
Reference in New Issue
Block a user