HW3
COP-3223H

Write a sequence of operations that compute the factorial of a number placed in memory location a, where factorial a! is defined as the product of all integers between 1 and whatever positive number in a is.

The operations available, according to the meanings given in class, are, for any memory location a

input
output
1
2
3
4
5
6
7
8
9
0
store a
recall a
+
-
*
/
=
goto NUMBER
if CONDITION goto NUMBER

Author: Paul Gazzillo

Created: 2026-01-16 Fri 09:28

Validate