a = int(input())
b = 1
c = 0
while a >= b:
c = c + b
b = b + 1
print(c)
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
a = int(input())
b = 1
c = 0
while a >= b:
c = c + b
b = b + 1
print(c)