본문 바로가기
Beakjoon&프로그래머스/Java

[백준/Java] 8370번 Plane

by 현장 2022. 4. 11.

-Code

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int n1 = sc.nextInt();
		int n2= sc.nextInt();
		int	k1 = sc.nextInt();
		int k2 = sc.nextInt();
		System.out.println(n1 * n2 + k1 * k2);
 	}	
}