package novseven;import java.util.Scanner;public class good { public static void main(String[] args) { System.out.println("1.´õÇϱâ 2.»©±â 3.°öÇϱâ 4.³ª´©±â"); Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); System.out.println("µÎ ½Ç¼ö¸¦ ¶ç¾î¾²±â ±âÁØÀ¸·Î ÀÔ·ÂÇϽÿÀ"); double b = scanner.nextDouble(); double c = scanner.nextDouble(); switch(a) { case 1: System.out.println(b+c); break; case 2: System.out.println(b-c); break; case 3: System.out.println(b*c); break; case 4: System.out.println(b/c); break; default: System.out.println("Á¦´ë·Î µÈ ¼±ÅÃÀ» ÇϽÿÀ"); } scanner.close(); }}
|