Void
-
012. 실행 흐름의 컨트롤(제어문) for문 중첩(별 찍기), break, continue, skip,return 실습, 변수와 메소드의 스코프SsY/Class 2023. 2. 26. 22:55
2023.02.09 (목) 실행 흐름의 컨트롤 (제어문) - 반복문(for문) 중첩 실습 (별찍기) Test061~064 (과제) - 반복문(for문) 중첩 실습 (별찍기) Test061 더보기 public class Test061 { public static void main(String[] args) { for (int j=4; j>=0; j--) { for (int i=0; i=j) System.out.print("*"); else System.out.print(" "); } System.out.println(); } } } Test062 더보기 public class Test062 { public static void main(String[] args) { for (int i=0; i