15 lines
201 B
Text
15 lines
201 B
Text
n = 5 # calculates n!
|
|
acc = 1
|
|
|
|
factorial
|
|
comefrom
|
|
|
|
comefrom accumulate if n < 1
|
|
|
|
accumulate
|
|
comefrom factorial
|
|
acc = acc * n
|
|
comefrom factorial if n is 0
|
|
n = n - 1
|
|
|
|
acc # prints the result
|