Joined: Tue Mar 27, 2007 10:55 pm Posts: 2272 Location: Earth Has thanked: 39 time Have thanks: 61 time
Factorial function declaration example.
Code:
<% 'Factorial function. Function factorialValue(ByVal intValue) If intValue<= 1 Then factorialValue= 1 Else 'recursive call . factorialValue= intValue* factorialValue(intValue- 1) End If End Function %>
Example :
Code:
<% Response.Write ("Factorial of 7 = " & factorialValue(7)) %>
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )