Commit 13416b8a by BellCodeEditor

save project

parent a14371ad
Showing with 2 additions and 1 deletions
......@@ -6,6 +6,7 @@ def sum_numbers(num):
return 1
temp=+sum_numbers(num-1)
return num+temp
result=sum_numbers(100)
num=int(input("请输入一个数"))
result=sum_numbers(num)
print(result)
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