Thursday, May 22, 2014
0
excel vba program to find the factorial of a number macro program for factorial
Program
Sub Button5_Click()
Dim num, i, fact As Double
num = InputBox("enter number")
fact = 1
For i = 1 To num
fact = fact * i
Next i
MsgBox ("The factorial is " & fact)
End Sub
Sub Button5_Click()
Dim num, i, fact As Double
num = InputBox("enter number")
fact = 1
For i = 1 To num
fact = fact * i
Next i
MsgBox ("The factorial is " & fact)
End Sub
This post was written by: noufel n backer
Subscribe to:
Post Comments (Atom)
0 Responses to “excel vba program to find the factorial of a number macro program for factorial”
Post a Comment