Commit 357e0f01 by BellCodeEditor

save project

parent bc984869
Showing with 11 additions and 0 deletions
def sum(i):
a=0
s=0
while a<=i:
s=s+a
a=a+1
return s
b=int(input('请输入整数:'))
c=sum(b)
print(c)
\ 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