Regarding decisions about which type of loop to useif you know your loop will always be executed
Question:
Regarding decisions about which type of loop to use—if you know your loop will always be executed at least once, then do. . .while is a good option.
When a numeric variable is being changed by a consistent amount with each iteration through the loop, the for statement might be the best option. The while statement can be used to write any type of loop.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
C# Programming From Problem Analysis To Program Design
ISBN: 9781285096261
4th Edition
Authors: Barbara Doyle
Question Posted: