A program that generate sequence of odd number max300
Module OddNumber
''' <summary>
''' The start point of the program
''' </summary>
Sub Main()
Console.WriteLine("The sequence of odd numbers:" + vbNewLine)
'generate sequence of odd number max 300
For i As Integer = 0 To 300
'check if the value is the odd number
If i Mod 2 <> 0 Then
'display the odd number
Console.WriteLine(i.ToString())
End If
Next
'delay
Console.ReadLine()
End Sub
End Module
Comments
Leave a comment