1000번: A+B
두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오.
www.acmicpc.net
//A+B(1000)
import java.util.Scanner;
public class BJ1000 {
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);
sc.close();
}
}
import java.util.Scanner;
Scanner sc = new Scanner(System.in);
반응형