In coral, please!
7.8 LAB: User-Defined Functions: Max magnitude
Define a function named MaxMagnitude with two integer parameters that returns the largest magnitude value. Write a program that reads
Ex: If the inputs are:
57
the function returns and the program output is:
Ex: If the inputs are:
82
the function returns and the program output is:
-8
Note: The function does not just return the largest value, which for -8 -2 would be -2. Though not necessary, you may use the absolute value built-in math function: AbsoluteValue