Commit 455b6b71 by BellCodeEditor

save project

parent eedbd33b
Showing with 3 additions and 2 deletions
def sum_numbers(num): def sum_number(num):
if num==1: if num==1:
return 1 return 1
a=sum_number(num-1) a=sum_number(num-1)
return num+a return num+a
result=sum_number(100) result = sum_number(100)
print(result) print(result)
\ 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