Question: Task #2: Write a MIPS assembly program that asks the user for an integer n that he wishes to compute the factorial of. Calculate n!
Task #2: Write a MIPS assembly program that asks the user for an integer n that he wishes to compute the factorial of. Calculate n! based on the following code. Finally, print out the result. Answer the following question in your report: Q. What is the maximum value of n such that n! can fit in a 32-bit register? int fact(int, i++) for (int i; Isen; i; result = result } return result; ) Sample Run: Enter n: 7 n! = 5040
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
