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

7 lines
160 B
Text

RecFact := proc( n :: nonnegint )
if n = 0 or n = 1 then
1
else
n * thisproc( n - 1 )
end if
end proc: