BOJ

1부터 n까지 합

Coding_SJ 2020. 3. 16. 15:32

 

 

 

 

1
2
3
4
5
= int(input())
= 0
for i in range(1,n+1):
    a += i
print(a)
cs