자바예제

· IT/JAVA
while문 특정 조건을 만족할 때 까지 무한정 돌아간다. 무한 루프를 만들기 쉽다. while(i= 90) { System.out.println("수"); } else if(score >= 80) { System.out.println("우"); } else if(score >= 70) { System.out.println("미"); } else if(score >= 60) { System.out.println("양"); } else { System.out.println("가"); } } } switch문 일 경우 public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = 0; while(true) { Syst..
밍띠이
'자바예제' 태그의 글 목록