import java.util.Scanner; public class Exchange { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("기준환율 입력 : "); int num1 = scanner.nextInt(); System.out.print("달러를 입력하세요 : "); int num2 = scanner.nextInt(); scanner.close(); int res = mtaRate(num1,num2); System.out.println("환전액 : " + res + "원"); } public static int mtaRate(int num1, int num2) { int res = num1 * num2; return res; } }