Exercise 1: Calculating Area
Calculate the area of a triangle by using classes.
We'll cover the following...
We'll cover the following...
Problem statement
Write a class Triangle that contains two public float data members, length and height, a public constructor that initializes these data members to 0 and a public member function area that calculates the area of the triangle and returns it.