' Visual Basic 2008 9.0 .NET Examples - Iterations - Introduction to Visual Basic : Module Example11 Sub Main() Dim countValue As Integer Dim startValue As Integer = 1 Dim endValue As Integer = 10 Dim stepValue As Integer = 2 ' Console.WriteLine("values during iteration :") For countValue = startValue To endValue Step stepValue Console.WriteLine("count-value : " & countValue) ' countValue = countValue + 1 startValue = startValue + 1 endValue = endValue + 1 stepValue = stepValue + 1 Next ' Console.WriteLine("values after iteration :") Console.WriteLine("count-value : " & countValue) Console.WriteLine("start-value : " & startValue) Console.WriteLine("end-value : " & endValue) Console.WriteLine("step-value : " & stepValue) ' Console.ReadLine() End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.