for n = 1 to 5 for m = 1 to n print "*"; next m print next n