When the loop_condition is no longer satisfied, execution of the program continues with the program statement immediately following the for loop. In this program, execution continues with the NSLog statement after the loop has terminated.
The final component of the for statement contains an expression that is evaluated each time after the body of the loop is executed. In Program 5.2, this loop_expression adds 1 to the value of n. Therefore, the value of n is incremented by 1 each time after its value has been added into the value of triangularNumber, and it ranges in value from 1 through 201.
It is worth noting that the last value that n attains, 201, is not added into the value of
triangularNumber because the loop is terminated as soon as the looping condition is no longer satisfied, or as soon as n equals 201.