XJTU_Python_Problems/codes/6.py

5 lines
69 B
Python

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