Using the For/Next structure to demonstrate counter-controlled repetition. : Counter Controlled Repetition « Statements « VB.Net Tutorial






Module Tester

    Sub Main()
        Dim counter As Integer

      For counter = 2 To 10 Step 2
         Console.Write(counter & " ")
      Next

    End Sub 

End Module
2 4 6 8 10








4.15.Counter Controlled Repetition
4.15.1.Using the While structure to demonstrate counter-controlled repetition.
4.15.2.Using the For/Next structure to demonstrate counter-controlled repetition.