Commit 46ea7b2b by BellCodeEditor

auto save

parent eaff61ef
Showing with 15 additions and 8 deletions
def func(n):
if n<=2:
return 1
elif n>0:
value=func(n-1)+func(n-2)
return value
result=func(8)
print(result)
\ No newline at end of file
a=0
n=n-(n-1)
a=a+1
return n,a
func(21)
print(func())
n=21
a=0
for i in range():
n=n-(n-1)
a=a+1
Print(a,n)
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