Calculo area do triangulo

This commit is contained in:
Maria Carolina Oliveira da Silva 2022-10-31 15:35:04 -03:00
parent 19864847bf
commit c32afac722

View File

@ -1,3 +1,7 @@
export function triangleArea(base, height) { export function triangleArea(base, height) {
// your code here return (base * height) / 2;
} }
console.log(triangleArea(3,5));
console.log(triangleArea(5,5));
console.log(triangleArea(2,5));