Thursday, May 22, 2014

0

excel vba program to find the factorial of a number macro program for factorial

  • Thursday, May 22, 2014
  • tech
  • Share
  • 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

    0 Responses to “excel vba program to find the factorial of a number macro program for factorial”

    Post a Comment