Commit f2e382f3 by BellCodeEditor

save project

parent ee968072
Showing with 19 additions and 0 deletions
def jiecheng(n):
if n == 1:
return 1
elif n > 1:
hh = n*(n-1)
return hh
print(jiecheng(6))
\ No newline at end of file
def sung(n):
if n <= 2:
return 1
elif n > 2:
he = sung(n-1) + sung(n-2)
return he
print(sung(19))
\ 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