Commit 04894fe6 by BellCodeEditor

save project

parent 8b42b8bb
Showing with 1 additions and 1 deletions
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
def sum(n): def sum(n):
if n==1: if n==1:
return 1 return 1
num=sum(n-1)n num=sum(n-1)+n
return num return num
print(sum(10)) print(sum(10))
......
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