Commit e90a47d2 by BellCodeEditor

save project

parent d7c4495e
Showing with 7 additions and 7 deletions
def sum_numers(num): def func(n):
if num==1: if n<=2:
return 1 return 1
sum=sum_numers(num-1)+num elif n>2:
return sum m=func(n-1)+func(n-2)
number=sum_numers(100) return m
print(number) print(func(15))
\ 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