Question: Develop an LC3 assembly program that asks the user for a number, computes its factorial and displays it back to the user. The program will
Develop an LC3 assembly program that asks the user for a number, computes its factorial and displays it back to the user. The program will have to change the user input from a string to an int, compute its factorial, then change it back to a string in order to display it back to the user. Below is a pseudocode for the main program process. buffer = input("Enter a number: ") number = int(buffer) result = factorial(number) print("The factorial of", str(number), "is", str(result))
## Comments on the code are highly appreciated.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
