Visual Basic 2010 Perulangan For next Genap Ganjil

//lh3.googleusercontent.com/-K5UKWzgJhmU/AAAAAAAAAAI/AAAAAAAACdI/CN3nwiBZsGE/s512-c/photo.jpg
November 16, 2016





Perulangan For next Genap Ganjil VB 2010

 Public Class Form6



    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

        End

    End Sub



    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim angka As Integer

        For angka = TextBox1.Text To TextBox2.Text

            If angka Mod 2 = 0 Then

                ListBox1.Items.Add(angka)

            ElseIf angka Mod 2 = 1 Then

                ListBox2.Items.Add(angka)

            End If



        Next

    End Sub

End Class 


Related Post

SUBSCRIBE TO OUR NEWSLETTER

closed