-
10952 while 문!코테 대비 python/백준 2023. 1. 30. 21:09
https://www.acmicpc.net/problem/10952
10952번: A+B - 5
두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.
www.acmicpc.net
a,b=map(int,input().split()) while (a,b) != (0,0): print(a+b) a,b=map(int,input().split()) ########################################### while True: a, b = map(int, input().split()) if a == 0 and b == 0: break print(a+b)
'코테 대비 python > 백준' 카테고리의 다른 글
10951 try except 런타임에러 나오면 생각해보기 (0) 2023.01.30 10952 while 문! (0) 2023.01.30 2439 별 찍기 print(,end='') (0) 2023.01.30 2438 print(,end='') (0) 2023.01.30 11022 f string은 무적이다 (0) 2023.01.30