Answer to Question #160236 in Visual Basic for Mansur Suleiman

Question #160236

A program that generate sequence of odd number max300


1
Expert's answer
2021-01-31T10:16:47-0500
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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS