Iteration and Loops
We learned in Chapter 9 that selection is a particularly important programming concept in all programming languages. To use selection in our C# code, we have several construct options , and the best construct option to choose will depend on the particular task the code has to perform. The different construct options for selection are the if construct, the if-else construct, the if else if construct, and the switch construct with its case label. The switch construct can use numeric or string data types, and when we use strings, ...