... It doesn't matter, if she follows your advise she will get a square. ... Then you'll learn nothing. Some clue: One loop inside another one as previously said. Outer loop is the number of rows. Inside loop number of stars for each row printed minus one less than previous row.