본문 바로가기
백준 문제풀이/Java

[백준] 27323번 직사각형

by isfp_yykkng 2024. 3. 26.

[백준] 27323번 직사각형 - 자바

문제

해설

일반적인 수학에서 직사각형 계산하듯이 입력받아 출력한다.

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int height = Integer.parseInt(br.readLine());
        int width = Integer.parseInt(br.readLine());
        System.out.println(height * width);
    }
}