Commit e90a47d2 by BellCodeEditor

save project

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