Initial Commit
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
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
|
||||
Reference in New Issue
Block a user