알고리즘/백준
백준 10952번
hyeonseong
2022. 7. 29. 10:39
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a;
int b;
while (true) {
a = sc.nextInt();
b = sc.nextInt();
if (a == 0 && b == 0) {
break;
}
System.out.println(a+b);
}
}
}