public class Star04 {
	public static void main(String[] args) {
		int in = 5;
		for (int line = 0; line < in; line++) {
			for (int j = 0; j < in; j++) {
				System.out.print(line <= j ? "*" : " ");
			}
			System.out.println("");
		}
	}

}

+ Recent posts