Do you think that a counting loop will always count upwards by ones?
Answer:
No. Counting loops can count up by two's, for example.
End of the Chapter
We have reached the limit of this chapter. You may wish to review the following. Click on a subject that interests you to loop back to where it was discussed.
- Usefulness of cycles in machinery and programs.
-
Syntax
of a
whileloop. -
Semantics
of a
whileloop. - Three things that must be coordinated.
- The loop control variable.
- Counting loops.
The next chapter discusses even more about loops.