RosettaCodeData/Task/Factorial/Jq/factorial-2.jq
2017-09-25 22:28:19 +02:00

4 lines
60 B
Text

def fact(n):
if n <= 1 then n
else n * fact(n-1)
end;