How Does This For Loop Create A Right Triangle Pattern

How Does This For Loop Create A Right Triangle Pattern