forked from M3-Academy/challenge-algorithms-v2.0
feat(triangleArea): Adicionando o algoritmo que retorna a area de um triangulo.
This commit is contained in:
parent
5aad59c76a
commit
71b6572744
@ -1,3 +1,4 @@
|
||||
export function triangleArea(base, height) {
|
||||
// your code here
|
||||
let area = (base * height) / 2;
|
||||
return area;
|
||||
}
|
Loading…
Reference in New Issue
Block a user