Example 54: Area and Perimeter
Learn how to calculate the area and perimeter of a circle, square and triangle using macro definitions.
We'll cover the following...
Problem
Write macro definitions with arguments for calculation of the area and perimeter of a triangle, square, and circle.
Store these macro definitions in a file called areaperi.h
. ...