Commit 9c9b74cb by BellCodeEditor

save project

parent d5d8504c
Showing with 14 additions and 4 deletions
def peach(n)
if n==10:
number = input('请输入计算末尾值:')
def func(num):
if num==1:
return 1
if
\ No newline at end of file
num=num+func(num-1)
return num
func_num=func(int(number))
print(func_num)
\ No newline at end of file
def ff(n):
if n<=2:
return 1
else:
value=ff(n-1)+ff(n-2)
\ 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