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