write a Java program to input a site to find area of square, length and breadth to find the area of rectangle and three sides (a, b and c) to find the area of triangle using formula: area=√s(s-a) (s-b) (s-c) where s= a+b+c/2 and a, b, c are the sides of triangle
Answers
Answered by
0
Answer:
Java Program to find Area Of Triangle
Write a Java Program to find Area of a Triangle with an example. If we know the length of three sides of a triangle, we can calculate the area of a triangle using Heron’s Formula:
Area of a Triangle = √(s*(s-a)*(s-b)*(s-c))
Where s = (a + b + c)/2 (Here s = semi perimeter and a, b, c are the three sides of a triangle)
Similar questions