Can someone please show me how to get the Odd number using the For..Next loops in VB

I have declared the following;

Dim intCounter As Interger
Dim intStartValue As Interger
Dim intEndValue As Interger
Dim intSum As Interger

intStartValue = 0
intEndValue = 50
intSum = 0

Iam trying to write a code to get the odd numbers between 0-50?

For i As Integer = 1 to 50 Step 2
Console.writeline(i)
Next

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.