If the FOR statement asked for COUNT to start at -10 and to end at +10, what would the final total be?

Answer:

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.

End of the Chapter

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.

The next chapter explains more ways that the FOR statement can be used.

You have reached the end of the chapter.

go to previous page   go to home page