forked from M3-Academy/challenge-algorithms-v2.0
feat: criação da resposta do 02-triangleArea
This commit is contained in:
parent
eda78d854b
commit
924f2839fe
@ -1,3 +1,5 @@
|
|||||||
export function triangleArea(base, height) {
|
export function triangleArea(base, height) {
|
||||||
// your code here
|
// your code here
|
||||||
|
let soma = base * height / 2
|
||||||
|
return soma
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user