Problem:
Given two integers A and B, print A+B. (0 < A, B < 10)
My Code:
import java.util.Scanner;
public class BaekJoon_1000 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
scanner.close();
System.out.print(a + b);
}
}
Input
1 2
Output
3