LoopMain04

"Java Stuty"

Posted by Chungman on March 10, 2021

package Lecture3;

// * //

// ** //

// *** //

// ** //

// ***** //

public class LoopMain04 {

1
2
3
4
5
6
7
8
9
10
public static void main(String[] args) {
	
	for(int i=1; i<=5; i++) {				// 행 의미
		for(int j=1; j<=i; j++) {			// 열 의미
			System.out.print("*");
		}
		System.out.println();
	}

}

}