help me to make a factorial function.
Please help.
any help will appreciated much...
Vega_Knight 1
Light Poster
Recommended Answers
Jump to Posttry this :
Public Function Factorial(ByVal Number As Integer) As String Try If Number = 0 Then Return 1 Else Return Number * Factorial(Number - 1) End If Catch ex As Exception Return ex.Message End Try End Function
I called this function in button click event:
All 3 Replies
Jx_Man 987
Nearly a Senior Poster Featured Poster
Sawamura
commented:
Well great +1
Vega_Knight
commented:
thank you very much for your help +1
Vega_Knight 1
Light Poster
Jx_Man 987
Nearly a Senior Poster Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.