Given base(B) and height(H) of a triangle find its area.
Given base(B) and height(H) of a triangle find its area.
Input Size : N <= 1000000
Sample Testcase :
INPUT
2 4
OUTPUT
Input Size : N <= 1000000
Sample Testcase :
INPUT
2 4
OUTPUT
4
const readline = require('readline');
const inp = readline.createInterface({
input: process.stdin
});
const userInput = [];
inp.on("line", (data) => {
userInput.push(data);
});
inp.on("close", () => {
var data = userInput[0].split(" ");
var a = parseInt(data[0]);
var b= parseInt(data[1]);
console.log(0.5*a*b)
});
const inp = readline.createInterface({
input: process.stdin
});
const userInput = [];
inp.on("line", (data) => {
userInput.push(data);
});
inp.on("close", () => {
var data = userInput[0].split(" ");
var a = parseInt(data[0]);
var b= parseInt(data[1]);
console.log(0.5*a*b)
});
Comments
Post a Comment