In the previous exercise you created a program that computed the area of a triangle when the length of its base and its height were known. It is also possible to compute the area of a triangle when the lengths of all three sides are known. Let s1, s2 and s3 be the lengths of the sides. Let s = (s1 + s2 + s3)/2. Then the area of the triangle can be calculated using the following formula:
Area =
Develop a program that reads the lengths of the sides of a triangle from the user and displays its area.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here