forked from M3-Academy/challenge-algorithms-v2.0
feat: adicionando solução do 2° desafio
This commit is contained in:
parent
b40d4b432f
commit
ae920dca29
@ -1,3 +1,5 @@
|
|||||||
export function triangleArea(base, height) {
|
export function triangleArea(base, height) {
|
||||||
// your code here
|
// your code here
|
||||||
|
let area = (base * height)/2;
|
||||||
|
return area;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user