December 2012
Beginner
280 pages
7h 43m
English
![]()
One of the things computers can do more efficiently than humans is repetitive tasks. People get bored and, when that happens, their attention drifts and errors in the task at hand creep in. Computers never get bored, so they are great at performing repetitive tasks. Unless a µc loses power or a component fails, they will loop forever, unless instructed to do otherwise.
In this chapter, you will learn:
- What makes a “good” program loop
- How to use a
forloop- How to use the
whilestatement- How to use a
do-whilestatement and its differences- Infinite loops
- The
breakandcontinuekeywords
You have already used program ...
Read now
Unlock full access