RosettaCodeData/Task/Factorial/Lingo/factorial-2.lingo
2023-07-01 13:44:08 -04:00

7 lines
93 B
Text

on fact (n)
res = 1
repeat with i = 2 to n
res = res*i
end repeat
return res
end