Java Program – to calculate the area of a triangle.

Output: