QUESTION

Using MIPS Assembly Language.

  1. The factorial of an integer n, written n!, is simply the product of all the integers from 1 to n. For example, 5! = 1*2*3*4*5 = 120. Write a program to calculate the factorial of integers from 1 to n where n is taken from the user. Your output should look like the sample output given below.

Output

Enter the value of n: 5

Integer Factorial

1 1

2 2

3 6

4 24

5 120

Public Answer

ILAKQS The First Answerer