Do Until Loop : Do Until « Language Basics « VB.Net






Do Until Loop

Do Until Loop
Imports System

Public Class MainClass

    Shared Sub Main(ByVal args As String())
       Dim counterVariable As Integer = 0

       Do Until counterVariable = 10
          Console.WriteLine("counterVariable: {0}", counterVariable)
          counterVariable = counterVariable + 1
       Loop ' Until counterVariable = 10
    End Sub


End Class

           
       








Related examples in the same category

1.Exit from Do UntilExit from Do Until