
public class step4_conditional_repetitive2 { final static int N = 30; public static void main(String[] args) { int i = 0, sum = 0; // 이렇게 하면 한번에 2개 변수 초기화 가능 while(i 0; a--) { for(int j = a; j > 0; j--) // a가 30일때 이부분 30번 반복 즉 * 30번 출력 그리고 그냥 print라 줄바꿈 없이 이어서 출력 { System.out.print("*"); } System.out.println(); // 안에 반복이 끝나면 한칸 줄바꿈 해줌 } /* 하나의 비교 연산자는 TURE혹은 FALSE를 반환하게 됩니다. 모든 조건문, 반복문에서는 웬만하면 ..