Where the body can be either a single statement or a block of statements within.
Both while loops and do-while loops ( see below ) are condition-controlled, meaning that they continue to loop until some condition is met.while Loops ( Condition-Controlled Loops ) In this section we will learn how to make computer repeat actions either a specified number of times or until some stopping condition is met. C Programming Course Notes - Looping ConstructsĬomputers are very good at performing repetitive tasks very quickly.