Commit 9f162a97 by BellCodeEditor

save project

parent 28db686c
Showing with 4 additions and 1 deletions
...@@ -4,4 +4,6 @@ ...@@ -4,4 +4,6 @@
def sum_numbers(num): def sum_numbers(num):
if num==1: if num==1:
return 1 return 1
sum_numbers(num) s=sum_numbers(num-1)
return num+s
print(sum_numbers(99))
\ 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