Simplest For loop : For « Language Basics « VB.Net
- VB.Net
- Language Basics
- For
Simplest For loop

Imports System
Public Class MainClass
Shared Sub Main()
Dim intCount As Integer
'Perform a loop
For intCount = 1 To 5
'Add the item to the list
System.Console.WriteLine("I am item " & intCount & " in the list!")
Next
End Sub
End Class
Related examples in the same category