Commit fdc83592 by BellCodeEditor

save project

parent 98a3d83d
Showing with 6 additions and 6 deletions
def peach(n): def peach(n):
if n ==1: if n<=2:
return 1 return 1
else :
num = (peach(n-1)) num = (peach(n-1)+peach(n-2))
return num+n return num
print(peach(2)) print(peach(8))
\ 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