Commit 55424b4d by BellCodeEditor

auto save

parent d8f0efcd
Showing with 7 additions and 8 deletions
def func(n):
if n<=2:
def f(n):
if n==1:
return 1
elif n>2:
a=func(n-1)+func(n-2)
return a
j=func(6)
print(j)
a!=f(n-1)!*n
return a
b=f(5)
print(b)
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