challenge-algorithms-v2.0-v.../02-triangleArea/index.js
2022-10-28 07:42:41 -03:00

3 lines
80 B
JavaScript

export function triangleArea(base, height) {
return ((base * height) / 2);
}