Write a function MaxMagnitude with two input parameters, that returns the largest-magnitude value. If the inputs are 5 7, the function returns 7. If the inputs are-8-2, the function returns-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. Use the function in a program that takes two integer inputs, and outputs the largest-magnitude value.
+3
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write a function MaxMagnitude with two input parameters, that returns the largest-magnitude value. If the inputs are 5 7, the function ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » Write a function MaxMagnitude with two input parameters, that returns the largest-magnitude value. If the inputs are 5 7, the function returns 7. If the inputs are-8-2, the function returns-8.