import java.util.Scanner;
public class Ex05_Switch {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("์ฑ๋ ์
๋ ฅํด์ฃผ์ธ์");
int channel = sc.nextInt();
switch (channel) {
case 11:
System.out.println("MBC - ๋ฌดํ๋์ ");
break;
case 7:
System.out.println("KBS - ๋ด์ค");
break;
case 33:
System.out.println("CGV - ๋ฐ์ง์์ ์");
break;
case 100:
System.out.println("๋ทํ๋ฆญ์ค - ์ค์ํธํ3");
break;
default:
System.out.println("์์ฒญํ์ ์ฑ๋์ด ์์ต๋๋ค.");
break;
}
sc.close();
}
}
Java
๋ณต์ฌ