# i = 1
# while i < 11:
# print(i)
# i = i + 1
# n = int(input())
# i = 1
# while i <= 9:
# print(f"{n} x {i} = {n*i}")
# i = i + 1
sum = 0
i = 1
while True:
print(f"{i}만원 저축되었습니다.") #매번 출력만
sum += i #총 저축된 금액을 구하는 것
if i >= 12:
break
i+=1
print(f"총 {sum}만원 저축되었습니다.")
sum = 0
i = 1
while i <= 10:
sum += i
i+=1
print(sum)
To embed this project on your website, copy the following code and paste it into your website's HTML: