Calculate Area of Two Triangles

# Introduction In this lab, you need to create a program that calculates the area of two triangles using the formula: area = (base \* height) / 2, by implementing a class called Triangle with a constructor and a function to calculate the area, and then create two objects of the Triangle class to calculate and display the areas of the triangles.

|
60 : 00

Click the virtual machine below to start practicing