Commit d1c6fc93 by BellCodeEditor

save project

parent 0f53c1f3
Showing with 14 additions and 0 deletions
def a(num):
a1 = 1
ret = 0
while True:
ret += a1
a1 += 1
if a1 == num:
break
ret += a1
return ret
print(a(10))
\ 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