“For” Loops
A loop statement tells the computer to execute a set of instructions many times, and is controlled by the loop variable.
for ( int i = 0; i < num; i++ )
The body of the loop is repeated. Values of i each time around the loop:
What is the value of sum at the end?