RosettaCodeData/Task/Factorial/Comal/factorial.comal

8 lines
121 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
PROC Recursive(n) CLOSED
r:=1
IF n>1 THEN
r:=n*Recursive(n-1)
ENDIF
RETURN r
ENDPROC Recursive