for (i = 0; i < 10; i++) { for (n = 0; n < i; n++) { System.out.print("*") } System.out.print("\n") }