8 lines
88 B
Python
8 lines
88 B
Python
def fact(x):
|
|
if x == 1:
|
|
return 1
|
|
else:
|
|
return x * fact(x-1)
|
|
|
|
print(fact(5))
|