Laporan Tugas 1 Pemograman Visual: Imports Public Class Private Sub Byval As Byval As Handles
Laporan Tugas 1 Pemograman Visual: Imports Public Class Private Sub Byval As Byval As Handles
PEMOGRAMAN VISUAL
Source
Imports System.IO
Public Class Form1
End Sub
i = ListBox1.Items.Count
y = 0
For x = 0 To (i - 1)
s = ListBox1.Items.Item(x)
y = y + s
Label5.Text = "Jumlah = " & y
If (s Mod 2 = 0) Then
ListBox3.Items.Add(s)
Else
ListBox2.Items.Add(s)
End If
Next
i1 = ListBox2.Items.Count
y1 = 0
For x1 = 0 To (i1 - 1)
s1 = ListBox2.Items.Item(x1)
y1 = y1 + s1
Label6.Text = "Jumlah = " & y1
Next
i2 = ListBox3.Items.Count
y2 = 0
For x2 = 0 To (i2 - 1)
s2 = ListBox3.Items.Item(x2)
y2 = y2 + s2
Label7.Text = "Jumlah = " & y2
Next
End Sub
End Class