...

/

Exercise 1: Calculating Area

Exercise 1: Calculating Area

This is a basic exercise on defining a class that helps calculate the area of a triangle

We'll cover the following...

Problem Statement

Let’s start with a very basic example.

Write a class having double type variables for length, heightand one member function called area which will return the area of the right angle triangle.

Access this course and 1400+ top-rated courses and projects.