2022-10-27 15:07:13 +00:00
|
|
|
export function triangleArea(base, height) {
|
|
|
|
// your code here
|
2022-11-02 01:30:55 +00:00
|
|
|
var calculaarea = require("Area-triangulo-df");
|
|
|
|
var base = 0;
|
|
|
|
var height = 0;
|
|
|
|
var area = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log("calcula a area de um triangulo");
|
|
|
|
base = parseFloat(readline.Question("base: "));
|
|
|
|
height = parseFloat(readline.Question("height "));
|
|
|
|
// area = calculaarea(base*height)/2;
|
|
|
|
area = calculaarea(base, height);
|
|
|
|
|
|
|
|
console.log("area do triangulo e;" + area)
|