Joined: Tue Mar 27, 2007 10:55 pm Posts: 2272 Location: Earth Has thanked: 39 time Have thanks: 61 time
Following code checks if number is odd or even using s function checkEvenOdd
Code:
<% function checkEvenOdd(ByVal intValue) If (intValue MOD 2 = 0 ) Then Response.Write ("The number is <b>even</b><br>") Else Response.Write ("The number is <b>odd</b><br>") End If end function %>
Code:
<% checkEvenOdd(2) %>
The output is
Code:
The number is even .
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )