How to use For...Next Loop in vb.net

Total Post:341

Points:2389
VB.Net 
 956  View(s)
Ratings:
Rate this:
I want to use  For...Next Loop in vb.net how to do this please give me solution.
  1. Post:281

    Points:2003
    Re: How to use For...Next Loop in vb.net

    It repeats a group of statements a specified number of times and a loop index counts the number of loop iterations as the loop executes.

    Module Module1
        Sub Main()
            Dim a As Integer
            For a = 50 To 80
                Console.WriteLine("value of a: {0}", a)
            Next
            Console.ReadLine()
        End Sub
    End Module

      Modified On Apr-10-2018 06:46:21 AM

Answer