Write a program using while statement to print even-odd number between 1-50


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
While A < 50
If (A Mod 2 = 0) Then
ListBox1.Items.Add(A)
A = A + 1
Else
ListBox2.Items.Add(A)
A = A + 1
End If
End While
End Sub
End Class

Comments

Popular posts from this blog

Mechanical Engineering 5th semester notes & books download [free] | MSBTE

industrial training report msbte pdf | weekly diary | Download the format

Digital Techniques (DTE) 22320 MCQ I-scheme pdf with answers [All Chapters]