Factorial

April 18, 2008

Private Sub Start_Click()
Dim N, x As Integer
N = Val(Text1.Text)
For x = 2 To N - 1
If N Mod x = 0 Then
List1.AddItem (x)
End If
Next
List1.AddItem (N)
End Sub

Private Sub Riset_Click()
Text1.Text = “”
List1.Clear

End Sub