Take a look at the nested loop. It's printing out the number of spaces depending on which line you're on.

So the first line has no spaces, the second line has 1 space, and so on and so forth.