VB.net Program to Get the Sequence of Integer Numbers Within a Specified Range

You are currently viewing VB.net Program to Get the Sequence of Integer Numbers Within a Specified Range

VB.Net program to get the sequence of integer numbers within a specified range

'VB.NET program to get the sequence of integer numbers 
'within a specified range.

Module Module1
    Sub Main()
        Dim intValues = Enumerable.Range(21, 10)

        Console.WriteLine("Sequence of elements:")
        For i = 0 To intValues.Count() - 1 Step 1
            Console.Write(intValues.ElementAt(i) & " ")
        Next
        Console.WriteLine()
    End Sub
End Module
Sequence of elements:
21 22 23 24 25 26 27 28 29 30
Press any key to continue . . .

Ranjith Kumar

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply