코딩 이야기

[Java] while을 이용한 반복출력 구현

고주망고 2022. 1. 4. 20:06

실행 결과

package javaTest4;

public class whileExam {
	public static void main(String[]args) {
		int i=0;
		while(i<10) {
			System.out.println(i);
			i++;
		}
	}
}