RosettaCodeData/Task/Factorial/Maxima/factorial-2.maxima

2 lines
49 B
Plaintext

fact(n) := if n < 2 then 1 else n * fact(n - 1)$