[python] 백준 10952번 오답노트

김보현·2024년 6월 1일
0

PS

목록 보기
12/68
while 1:

while문을 1로 두면 계속 반복된다. (또는 True)
break를 써주면 멈춘다.

정답

while True:
    a,b = map(int, input().split())
    if a == b == 0:
        break
    else:
        print(a+b)

알고나니 보이는 것들..

profile
Fall in love with Computer Vision

0개의 댓글