How can you get 400 from 4 and 2 without clinging to anything else?
Based on the following prototype, create the function mag (), which increases the order of the value of the variable num to the level specified by the order variable:
void mag (long &num, long order); For example, if the num variable is 4 and the order variable is 2, then after executing the mag () function, the num variable should become equal to 400. Write a demo program indicating that the function works.
numby10 ^ order? - avpordertimes multiplied by 10 with a positiveorder, or-orderdivided by 10 with a negative. (What to do whenorder == 0remains as an exercise.) - VladD