Find the Area of Triangle using base and height – Java Program

Objective: Given the base and height of a triangle, using math formula for calculating the area of triangle, write an java program to calculate the triangle area.

Area of a Triangle: (Base * Height)/2

Code:


Output:

Area of Triangle is: 10.0

__________________________________________________
Top Companies Interview Questions..-

Google Microsoft Amazon Facebook more..

If you find anything incorrect or you feel that there is any better approach to solve the above problem, please write comment.
__________________________________________________

%d bloggers like this: