728x90
출처 : 자바의 정석
public class LoopCheck {
public static void main(String[] args) {
for (int i = 1; i <= 3; i++){
for(int j = 1; j<= 3; j++){
for(int k=1; k<=3; k++){
System.out.println("" + i + j + j);
}
}
System.out.println(" ");
}
}
}
111
111
111
122
122
122
133
133
133
211
211
211
222
222
222
233
233
233
311
311
311
322
322
322
333
333
333
728x90
'Programming > Java' 카테고리의 다른 글
[Java] - 반복문 이용해서 로또 번호 생성하기 (0) | 2020.10.29 |
---|---|
[Java] - 배열 (0) | 2020.10.29 |
[ Java ] - Path must include project and resource name: /.gitignore (0) | 2020.10.27 |
[Java] - 인덱스 값을 자유자재로 조절하는 것이 중요하다. (0) | 2020.10.27 |
[ Java ] - JVM 아키텍쳐 참고 영상 (0) | 2020.09.25 |
댓글