[JAVA] ch04-08. SWITCH ~ CASE 문 3
·
JAVA/예제
public class Ex08 { public static void main(String[] args){ int score = 3; switch(score*100){ case 100: System.out.println("score: 100"); case 200: System.out.println("score: 200"); case 300: System.out.println("score: 300"); case 400: System.out.println("score: 400"); default: System.out.println("none"); } } }