일상

10951 : A + B - 4

STUDYING,,, 2021. 7. 26. 23:12
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {

		Scanner sc = new Scanner(System.in);

		int sum = 0;

		while (sc.hasNextInt()) {
			int num1 = sc.nextInt();
			int num2 = sc.nextInt();

			sum = num1 + num2;
			System.out.println(sum);

		}
		sc.close();
	}
}

'일상' 카테고리의 다른 글

10818 : 최소, 최대  (0) 2021.07.26
1110 : 더하기 사이클  (0) 2021.07.26
10952 : A + B - 5  (0) 2021.07.26
10871 : X보다 작은 수  (0) 2021.07.26
2439 : 별 찍기 -2  (0) 2021.07.26