Commit fca9dbdb by BellCodeEditor

save project

parent c185da23
Showing with 17 additions and 0 deletions
def peach(n):
if n==10:
return 1
else:
return (peach(n+1)+1)*2
res=peach(1)
print(res)
def fei(n):
if n<=2:
return 1
else:
m=fei(n-1)+fei(n-2)
return m
res=fei(8)
print(res)
\ 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