Commit 2a42a666 by BellCodeEditor

save project

parent 82dcffe4
Showing with 3 additions and 3 deletions
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
def sum_numbers(n): def sum_numbers(n):
if n == 1: if n == 1:
return 1 return 1
a=n+sum_numbers(n-1) a=sum_numbers(n-1)
return a return a
print(sum_numbers(100)) print(sum_numbers(9))
\ 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