Commit c47b67fd by BellCodeEditor

save project

parent e0570941
Showing with 10 additions and 2 deletions
alist = [88, 75, 72, 82, 90, 85, 78, 91] def sum_numbers(num):
\ No newline at end of file if num==1:
return 1
temp=sum_numbers(num-1)
return num+temp
m=input("请输入一个数字:")
m = int(m)
result=sum_numbers(m)
print(result)
\ 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