Professional Documents
Culture Documents
Dim a As Integer
Dim b As Integer
Dim c As Integer
Dim d As Integer
Dim f As Integer
Dim m As Integer
Dim n As Integer
Dim x As Integer
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
a = TextBox1.Text
b = TextBox2.Text
c = TextBox3.Text
d = TextBox4.Text
f = TextBox5.Text
x=0
For i = 1 To 2000
m=i
If (m Mod a = 0) Then
If (m Mod b = 0) Then
If (m Mod f = 0) Then
If (m Mod c = 0) Then
If (m Mod d = 0) Then
x=x+1
If x = 1 Then
ListBox1.Items.Add(m)
End If
End If
End If
End If
End If
End If
Next
End Sub