백준 10952번| Java - A+B-5

bj1

풀이

import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		while(true) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			
			if(a==0 && b==0) {
				sc.close();
				break;
			}
			System.out.println(a+b);
		}
	}
}

comments powered by Disqus