RosettaCodeData/Task/Factorial/Comal/factorial.comal

8 lines
121 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
PROC Recursive(n) CLOSED
r:=1
IF n>1 THEN
r:=n*Recursive(n-1)
ENDIF
RETURN r
ENDPROC Recursive