RosettaCodeData/Task/Factorial/Jq/factorial-2.jq
2023-07-01 13:44:08 -04:00

4 lines
60 B
Text

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