Mega Code Archive

 
Categories / VB.Net / Language Basics
 

For Loop with negative step

Imports System Public Class MainClass     Shared Sub Main()         For intCount As Integer = 10 To 1 Step -1             'Add the item to the list             System.Console.WriteLine(intCount)         Next     End Sub End Class