Commit e73aa1ba by BellCodeEditor

save project

parent 6c547518
Showing with 5 additions and 6 deletions
def func(NUM):
def sun_numbers(NUM):
if Num == 1
return + 1
func(num) = num+func(num-1)
num-1=num
temp = sun_numbers(num-1)
return num +temp
result = sun_numbers(100)
print(result)
func(num) = num+func(num-1)
print(fune(NUM))
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