Uploaded January 2021 | Updated November 2026, 3 hours ago
This is the fifteenth in a series of computer science video tutorials for beginners, about programming with Visual Basic.NET (VB.NET) in Visual Studio. In this lesson you will learn how to execute a block of code repeatedly using a DO WHILE loop. This illustrates the third fundamental construct of high level programming, namely iteration. Iteration is also known as looping. You will see how a DO WHILE loop can do the same job as a FOR NEXT loop, although it is necessary for the programmer to write extra code to increment the variable used to count how many times the code inside the loop executes. You will also see that the exit condition of a DO WHILE loop can be written at the top of the loop, or the bottom of the loop as LOOP WHILE. The exit condition can also be written as DO UNTIL or LOOP UNTIL, which means there are four different variations of the DO loop.
This is the fifteenth in a series of computer science video tutorials for beginners, about programming with Visual Basic.NET (VB.NET) in Visual Studio. In this lesson you will learn how to execute a block of code repeatedly using a DO WHILE loop. This illustrates the third fundamental construct of high level programming, namely iteration. Iteration is also known as looping. You will see how a DO WHILE loop can do the same job as a FOR NEXT loop, although it is necessary for the programmer to write extra code to increment the variable used to count how many times the code inside the loop executes. You will also see that the exit condition of a DO WHILE loop can be written at the top of the loop, or the bottom of the loop as LOOP WHILE. The exit condition can also be written as DO UNTIL or LOOP UNTIL, which means there are four different variations of the DO loop.










