<filename>week08/code02.py<gh_stars>0
n = int(input("자연수를 입력해 주세요 : "))
i = 1
total = 0
while i <= n:
    total = total + i
    i += 1
print("합계=", total)
<filename>week08/code02.py<gh_stars>0
n = int(input("자연수를 입력해 주세요 : "))
i = 1
total = 0
while i <= n:
    total = total + i
    i += 1
print("합계=", total)