forked from M3-Academy/challenge-algorithms-v2.0
feat: resolucao triangleArea
This commit is contained in:
parent
bbd1e894aa
commit
7983706a5a
@ -1,3 +1,7 @@
|
||||
export function triangleArea(base, height) {
|
||||
// your code here
|
||||
}
|
||||
const areaTriangle = (base * height) / 2
|
||||
return areaTriangle
|
||||
}
|
||||
|
||||
triangleArea(10, 15)
|
Loading…
Reference in New Issue
Block a user