Feat(triangleArea): Adiciona logica do algoritmo que retorna a área de um triângulo

This commit is contained in:
Amanda de Almeida Fonseca 2022-10-28 15:24:33 -03:00
parent 815fad9185
commit 9b8ea88441

View File

@ -1,3 +1,4 @@
export function triangleArea(base, height) {
// your code here
return (base * height) / 2;
}