Thursday, 14 April 2016

C# For Beginners Lesson 17 - Sentinel Controlled Structure


This section uses the while repetition statement introduced in Chapter 4 to formalize the elements required to perform counter-controlled repetition, which requires
1. a control variable (or loop counter)
2. the initial value of the control variable
3. the increment by which the control variable is modified each time through the loop (also known as each iteration of the loop)
4. the loop-continuation condition that determines if looping should continue.

No comments:

Post a Comment