Example 55: Arithmetic Operation
Learn how to perform numerous arithmetic operations using macro definitions.
We'll cover the following
Problem
Write down macro definitions for the following:
- To find the arithmetic mean of two numbers
- To find the absolute value of a number
- To convert an upper case alphabet to lower case
- To obtain the biggest of three numbers
Solution
Given below is our recommended way to approach this problem.
Get hands-on with 1300+ tech skills courses.