Question: code in c++ please 2.23 LAB: Area of a triangle Using Heroris formula, you can caiculate the atea of a triangle if you know the

code in c++ please
code in c++ please 2.23 LAB: Area of a triangle Using Heroris

2.23 LAB: Area of a triangle Using Heroris formula, you can caiculate the atea 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 Heroris formula as follows: 1. s = half of the triangle's perimeter 2. area = the square root of s(sa)(sb)(sc), where a;b, and c are each sides of the triangle. Use the math function sqrto for calculating the square root. Output each floating-point value with three digits after the decimal point, which you should know how to do by now. Ex if the input for,b, and cis. 3.04.05.0 the output is: The area of the triangle is: 6.000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!