Computer Science, asked by sayantanisamanta10, 8 months ago

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 Snehpriyanshu
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