Merge branch 'release/03.00'

This commit is contained in:
Gustavo Rallenson Gonçalves Da Silva 2022-10-28 19:39:54 -03:00
commit 9738ba689c
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,3 @@
export function triangleArea(base, height) {
// your code here
return base*height/2
}

View File

@ -1,4 +1,16 @@
export function maxValue(values) {
// implementar logica aqui
const Arr = values
let Maior = values[0]
if(Maior === undefined){
return Maior = 0;
}
else{
Arr.forEach((atual)=>{
if(Maior < atual){
Maior = atual
}
})
}
return Maior;
}