Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function triangleArea(input) {
- let side = parseFloat(input[0]);
- let height = parseFloat(input[1]);
- let result = side * height / 2;
- console.log(`${result.toFixed(2)}`)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement