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

6 lines
108 B
Text

to factorial :n
make "fact 1
make "i 1
repeat :n [make "fact :fact * :i make "i :i + 1]
print :fact
end