Defn: Nested means to be within or subject to an
encompassing program statement.
- Example: The for-j loop is nested (or enclosed
within) the control of the for-i loop, so that it is executed ten times.
for (int i = 0, k = 1; i < 10; i++) {
for (int j = 0; j < 10; j++) k++;
}