Switch 조건문
Switch( 변수명 ) case 조건값1: 실행문1; break; case 조건값2: 실행문2; break; default : (실행문) 예시 문항 : 계절 int month = 3; String season = ""; switch(month) { case 1: season = "겨울"; break; case 2: season = "겨울"; break; case 12: season = "겨울"; break; case 3: season = "봄"; break; case 4: season = "봄"; break; case 5: season = "봄"; break; case 6: season = "여름"; break; case 7: season = "여름"; break; case 8: season = "여름..
2022.07.14