In this chapter, we studied the various types of Do loops that Visual Basic .NET makes available to you. You learned that Do loops are often used when the terminating condition is not known when entering the loop. You also learned that Until loops are useful when you want to execute a set of instructions until some condition becomes True. Finally, you learned how a sentinel can be used to improve loop performance. Program loops are very important elements of any program, primarily because they often comprise such a large component of the program's total execution time. Because of this importance, pay close attention to them when you design your programs. |