백준 알고리즘

1. 입출력과 사칙연산 - 4 (10998번)

IT의 큰손 2023. 2. 27. 11:52
728x90

★ 문제

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

★ 소스코드

    •  
import java.util.Scanner;

public class Main {

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

	}

}
728x90