21 lines
185 B
Plaintext
Executable File
21 lines
185 B
Plaintext
Executable File
main()
|
|
|
|
def fact( n )
|
|
|
|
if lt(n 1)
|
|
return 1
|
|
else
|
|
temp = fact( n-1 )
|
|
return n * temp
|
|
end
|
|
|
|
end
|
|
|
|
def main()
|
|
|
|
"enter n: "
|
|
n = input()
|
|
print( fact(n) )
|
|
|
|
end
|