알고리즘/백준
[백준 10998번 ː 자바(JAVA)] A x B
그릿er
2020. 4. 14. 13:22
<문제>
두 정수 A와 B를 입력받은 다음, A×B를 출력하는 프로그램을 작성하시오.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
public class Main {
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);
}
}
|