7.2.4 Area of Triangle Code HS Java
Write a function called printTriangleArea() that computes and prints the area of a triangle given its base and height. Then call the function at least two times in the start() function.
The formula for an area of a triangle is:
Area = 1/2 * Base * Height
For example, if the base is 5 and the height is 4:
printTriangleArea(5, 4);
prints:
10