RosettaCodeData/Task/Factorial/HicEst/factorial.hicest
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

8 lines
145 B
Text

WRITE(Clipboard) factorial(6) ! pasted: 720
FUNCTION factorial(n)
factorial = 1
DO i = 2, n
factorial = factorial * i
ENDDO
END