Example 56: Calculate Interest
Write macro definitions with arguments for the calculation of simple interest and total amount. Store these macro definitions in a file called
Include this file in your program, and use the macro definitions for calculating simple interest and amount.
Given below is our recommended way to approach this problem.