Commit b787307f by BellCodeEditor

save project

parent 2a42a666
Showing with 2 additions and 1 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=sum_numbers(n-1) a=n+sum_numbers(n-2)
return a return a
print(sum_numbers(9)) print(sum_numbers(9))
\ 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