Problem: Arithmetic Expression
Write a subroutine that takes three arguments, X, Y , and Z (they are in $a0, $a1 and $a2). It then computes X · Y · Z and returns it. Use the subroutine to evaluate the following expression for various values of u and v: 7u 2 - 25uv + 63v 2 The main method, in a loop, prompts the user for values of u and v and prints out the result. End the loop when the user enters zero for both u and v. Hint: At each iteration, to evaluate the expression, you need to call the subroutine three times, one time for 7u 2 , one time for -25uv and one time for 63v 2 .