Algorithm/백준알고리즘
[백준알고리즘] 입출력과 사칙연산 7단계 - 10998번 A×B (JAVA)
개발자하소서
2022. 6. 2. 08:19
728x90
반응형
SMALL
📌문제
두 정수 A와 B를 입력받은 다음, A×B를 출력하는 프로그램을 작성하시오.
📌입력
첫째 줄에 A와 B가 주어진다. (0 < A, B < 10)
📌출력
첫째 줄에 A×B를 출력한다.

📌코드
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a,b;
a = sc.nextInt();
b = sc.nextInt();
System.out.println(a * b);
}
}
728x90
반응형
LIST