코딩 도구/백준 (단계별)
백준 10952 파이썬
MKISOS
2024. 1. 23. 13:13
반응형
백준 10952 : A+B - 5
문제
https://www.acmicpc.net/problem/10952
10952번: A+B - 5
두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.
www.acmicpc.net
답안 코드 :
while 1:
a, b = map(int, input().split())
if a == 0 and b == 0:
break
else:
print(a + b)
백준 / 문제 / 단계별로 풀어보기 / 3단계 반복문
while 1:
a, b = map(int, input().split())
if a == 0 and b == 0:
break
else:
print(a + b)
반응형