728x90
출처 - https://www.acmicpc.net/problem/10952
728x90
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan=new Scanner(System.in);
int num1;
int num2;
while(true) {
num1=scan.nextInt();
num2=scan.nextInt();
if ((num1==0)&&(num2==0))
break;
else
System.out.println(num1+num2);
}
}
}
728x90
'Problem Solving > BOJ' 카테고리의 다른 글
[백준, BOJ 11726] 2xn 타일링 (java) (0) | 2020.07.27 |
---|---|
[백준, BOJ 1463] 1로 만들기 (java) (0) | 2020.07.27 |
[백준, BOJ 10951] A+B -4 (java) (0) | 2020.07.21 |
[백준, BOJ 10950] A+B -3 (java) (0) | 2020.07.21 |
[백준, BOJ 2558] A+B -2 (java) (0) | 2020.07.21 |