[백준 알고리즘] 1000번 / A+B

2018. 5. 27. 21:18알고리즘/백준

728x90
반응형
SMALL

Q. 두 수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.

1
2
3
4
5
6
7
8
9
10
11
import java.util.Scanner;
 
public class Sum {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        System.out.println(a+b);
    }
}
Colored by Color Scripter



728x90
반응형
LIST