forked from M3-Academy/challenge-algorithms-v2.0
Merge pull request 'feat(triangleArea): Adicionando o algoritmo que retorna a area de um triangulo.' (#2) from feature/triangleArea into development
Reviewed-on: #2
This commit is contained in:
commit
5c5d0859ef
@ -1,3 +1,4 @@
|
|||||||
export function triangleArea(base, height) {
|
export function triangleArea(base, height) {
|
||||||
// your code here
|
let area = (base * height) / 2;
|
||||||
|
return area;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user