Baekjoon/Python3

[백준] 10952번 A+B - 5

달의요정루나 2023. 6. 5. 14:00

https://www.acmicpc.net/problem/10952

 

10952번: A+B - 5

두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.

www.acmicpc.net

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

'Baekjoon > Python3' 카테고리의 다른 글

[백준] 10807번 개수 세기  (0) 2023.06.08
[백준] 10951번 A+B - 4  (0) 2023.06.05
[백준] 2439번 별 찍기 - 2  (0) 2023.06.05
[백준] 2438번 별 찍기 - 1  (0) 2023.06.05
[백준] A+B - 8  (0) 2023.06.05