3 lines
68 B
Nim
3 lines
68 B
Nim
proc factorial(x): int =
|
|
if x > 0: x * factorial(x - 1)
|
|
else: 1
|
proc factorial(x): int =
|
|
if x > 0: x * factorial(x - 1)
|
|
else: 1
|