Create a MIPS function HYPOTENUSE to find the length of the hypotenuse of a right triangle whose sides are of length A and B. This function takes A and as parameters. HYPOTENUSE functions use another MIPS function SQROOT, to find the square root of an integer. SQROOT accepts an integer as an input and provides its square root as a return value. Write a main program that takes A and B as inputs from the user and displays the hypotenuse as an output. [Hint: Use stacks as this question is using nested functions]
Answers
Answered by
0
Explanation:
accepts an integer as an input and provides its square root as a return value. Write a main program that takes A and B as inputs from the user and displays the hypotenuse as a
Similar questions