ABSTRACT

Most programs contain many loops of different types. The programmer needs to be familiar with all types of loops and be able to select the most suitable one in each case. In this Chapter, you learn how to use the three loop constructs (for loop, while loop, and do-while loop) in practical programming situations.