Mega Code Archive
Categories
/
VB.Net Tutorial
/
Statements
Using the ForNext structure to demonstrate counter-controlled repetition
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