Write a javascript program to find the area of a triangle where lengths of the three of its sides are 5,6,7
Answers
Answered by
11
Explanation:
JavaScript: Find the area of a triangle where lengths of the three of its sides are 5, 6, 7. Sample Solution: HTML Code: <! JavaScript Code: var side1 = 5; var side2 = 6; var side3 = 7; var s = (side1 + side2 + side3)/2; var area = Math.sqrt(s*((s-side1)*(s-side2)*(s-side3))); console.log(area); Explanation: ES6.
Similar questions
Computer Science,
3 months ago
Math,
8 months ago
Political Science,
8 months ago
Chemistry,
1 year ago