Calculo area do triangulo
This commit is contained in:
parent
19864847bf
commit
c32afac722
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user