python/2024-10-26-2.py

6 lines
69 B
Python

n=int(input())
sum=0
for i in range(1,n+1):
sum=sum+i
print(sum)