[Language]/Java | Spring | JSP

[백준]10998: AxB

soheepark 2022. 4. 15. 10:37
728x90
반응형

Output

Input

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
		 Scanner in = new Scanner(System.in);
		 int A = in.nextInt();
		 int B = in.nextInt();
		 
		 System.out.println(A * B);
	}

}

앞서 풀었던 1000번 & 1001번과 같은 유형의 문제이다.

사칙연산만 달라지는 것일 뿐.

 

Scanner가 생각 안 날 것 같았는데 의외로 빨리 생각났음.

728x90
반응형