If the FOR
statement asked
for COUNT
to start at -10 and to end at +10,
what would the final total be?
Zero. The program will add up -10 through -1, then add in zero, then add it +1 through +10 for a net result of zero.
You have reached the end of the chapter. You may wish to review some of this information by clicking on interesting items. Remember to click on the "back" button of your browswer to return directly back to here.
DO WHILE
statement.
FOR
statement.
FOR
statement.
FOR
statement works.
FOR
loop body is not executed even once.
The next chapter explains more ways that the FOR
statement can
be used.