RosettaCodeData/Task/Factorial/Maple/factorial-2.maple

8 lines
160 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
RecFact := proc( n :: nonnegint )
if n = 0 or n = 1 then
1
else
n * thisproc( n - 1 )
end if
end proc: