Question: 3 . 2 6 LAB: Area of a triangle Using Heron's formula, you can calculate the area of a triangle if you know the lengths
LAB: Area of a triangle Using Heron's formula, you can calculate the area of a triangle if you know the lengths of all three sides. Given the length of each side of a triangle as input, calculate the area of the triangle using Heron's formula as follows: s half of the triangle's perimeter area the square root of ssasbsc where a b and c are each sides of the triangle. Hint: Use the math function sqrt for calculating the square root. Output the floatingpoint value of the area with two digits after the decimal point using the following statement once before all other cout statements: cout fixed setprecision; In c
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
