dev #1

Merged
matheusbrollodauter merged 11 commits from dev into master 2022-11-02 16:07:43 +00:00
2 changed files with 9 additions and 1 deletions
Showing only changes of commit 82a96126a4 - Show all commits

View File

@ -1,4 +1,8 @@
export function maxValue(values) {
// implementar logica aqui
if (values.length == 0) {
return 0
}
return Math.max(...values);
}

View File

@ -1,4 +1,8 @@
export function sum(values) {
// implementar logica aqui
let soma = 0
for (let index = 0; index < values.lenght; index += 1) {
soma = soma + values[index];
}
return soma;
}