feat: implementação de algoritmo que retorne a área de um triângulo.

This commit is contained in:
Ueber James Santos 2022-10-28 01:13:13 -03:00
parent 42db9b47ae
commit 20185bda88

View File

@ -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;
} }