작콩큰콩

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

코딩테스트

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

귤치치 2021. 5. 29. 17:08
public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		
		System.out.println(a + b);
	}
}

 

https://www.acmicpc.net/problem/1000

 

1000번: A+B

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

www.acmicpc.net

 

Comments