Triangulo area esta completa

This commit is contained in:
Mickael_cypriano 2022-11-02 12:58:46 -03:00
parent 2f44e8fb12
commit a9dc6795ea

View File

@ -1,3 +1,10 @@
export function triangleArea(base, height) { export function triangleArea(base, height) {
// your code here // your code here
return base * height / 2
} }
// Resultados esperados
console.log(triangleArea(3, 5), 7.5) // 7.5
console.log(triangleArea(5, 5), 12.5) // 12.5
console.log(triangleArea(2, 5), 5) // 5