Commit e93047b0 by BellCodeEditor

auto save

parent 28e0f3b5
Showing with 11 additions and 6 deletions
def f(n):
if n==1:
return 1
f=n*f(n-1)
return f
print(f(998))
def s(n): def sum(n):
if n==1: if n==1:
return 1 return 1
num=n*s(n-1) sum=n+sum(n-1)
return num return sum
print(s(998)) print(sum(998))
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment