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

+ Recent posts