Define a function named MaxMagnitude with two integer parameters that returns the largest magnitude value. Write a program that reads two integers from a user, calls function MaxMagnitude() with the inputs as arguments, and outputs the largest magnitude value.
Ex: If the inputs are:
5 7 the function returns and the program output is:
7 Ex: If the inputs are:
-8 -2 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
I cannot seem to understand this problem.