Commit a01f0cdc by BellCodeEditor

auto save

parent 7123e422
Showing with 14 additions and 0 deletions
i = 1
day = 1
sum = 0
n = int(input())
for j in range(n):
for z in range(i):
sum = sum + i
day += 1
if day>n:
break
i += 1
print(sum)
\ 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