Kód: Vybrať všetko
Private Sub Command1_Click()
Dim x As Integer
Dim total As Long
total = CLng(Text1.Text)
For x = Int(Text1.Text) - 1 To 2 Step -1
total = total * x
Next
Text2.Text = total
End Sub
Kód: Vybrať všetko
Private Sub Command1_Click()
Dim x As Integer
Dim total As Long
total = CLng(Text1.Text)
For x = Int(Text1.Text) - 1 To 2 Step -1
total = total * x
Next
Text2.Text = total
End Sub