나를 기록하다
article thumbnail
반응형

1) 내가 작성한 코드

i = 1
while i > 0:
    A, B = map(int, input().split())
    if A == 0 and B == 0:
        exit()
    else:
        print(A + B)
  • while True ← 이 구문이 기억이 나지 않아서 이렇게 작성했다.

2) 구글링 코드

while True:
    a, b = map(int, input().split())
    if a == 0 and b == 0:
        break
    print(a+b)
반응형
profile

나를 기록하다

@prao

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!

profile on loading

Loading...