answersLogoWhite

0


Best Answer

You can create the factorial of desired number. Try this code:

Private Sub Command1_Click()

Dim fact As Integer

fact = 1

Dim num As Integer

Dim i As Integer

num = InputBox("Enter Number..")

For i = 1 To Val(num)

fact = fact * num

num = num - 1

Next

Label1.Caption = fact

End Sub

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you create a factorial in vb6.0?
Write your answer...
Submit
Still have questions?
magnify glass
imp