Showing posts with label Do while. Show all posts
Showing posts with label Do while. Show all posts

05 May 2012

Loops with variable repetitions

'For' loops are controlled by a built-in counter and are used where the number of repetitions is known before the loops is executed. Some problems involve repetition based on a condition whose occurrence is unpredictable. For these problems,a pre-test loop is used with an appropriate condition.