2025 | N줄 덧셈
for문으로 1부터 입력받은 숫자까지 증가시키며 결과에 누적해서 더해주면 된다.
N = int(input()) result = 0 for i in range(1, N+1): result += i print(result)