import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int sum = a + b;
System.out.println(sum);
}
}
scanner 메서드 사용.
'Algorithm > Baekjoon' 카테고리의 다른 글
[백준] #10998: AxB (0) | 2022.02.20 |
---|---|
[백준] #1001: A-B (0) | 2022.02.20 |
[백준] #10172: 개 (0) | 2022.02.11 |
[백준] #10171: 고양이 (0) | 2022.02.11 |
[백준] #10718: We love kriii (0) | 2022.02.11 |