Arrays: A Data Structure
We learned in Chapter 10 that iteration is a very important programming concept in all programming languages. To use iteration in our C# code, we have a number of construct options, and the best construct option to choose will depend on the particular task the code has to perform. The different constructs for iteration are the for construct, the while construct, the do while construct, and the foreach construct. Within the constructs, there are options to break out of the iterations completely or to break out of a particular ...