Program to find factorial of a number
Sample :
Private Sub Text1_Change()
Dim num, ans As Double
num = Val(Text1.Text)
ans = num
While num > 1
ans = ans * (num - 1)
num = num - 1
Wend
Text2.Text = ans
End Sub
Full Code :
Output(factorial.exe)
Full code(factorial.doc)
Full project(factorial.zip)
*Note Full project require Visual Basic 6.0