728x90
문제
https://www.acmicpc.net/problem/27323
27323번: 직사각형
정수 A, B 가 주어진다. 세로 길이가 A cm, 가로 길이가 B cm 인 아래와 같은 직사각형의 넓이를 cm2 단위로 구하시오.
www.acmicpc.net
코드
두 줄에 걸쳐 정수 A, B가 주어진다. 세로 길이가 A cm, 가로 길이가 B cm인 직사각형의 넓이를 출력하는 문제다.
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 a = Integer.parseInt(br.readLine());
int b = Integer.parseInt(br.readLine());
System.out.println(a * b);
}
}
728x90