Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function triangleArea(a, b, c) {
- let s = (a + b + c) / 2;
- let area = Math.sqrt(s * (s - a) * (s - b) * (s - c));
- console.log(area);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement