1. for i := 1 to n do 2. x := x + 1 // count this line 3. for j := 1 to n do 4. for k := 1 to j do 5. y := y + 1 // count this line too