programming-examples/asp/More_Code_Snippets/This will check whether a number is odd or even.asp
2019-11-18 14:25:58 +01:00

16 lines
277 B
Plaintext

<%
function OddOrEven(ByVal intNumber)
If (intNumber MOD 2 = 0 ) Then
Response.Write ("Your number is even<br>")
Else
Response.Write ("Your number is odd<br>")
End If
end function
%>
Now we will test this function
<%
OddOrEven(2)
OddOrEven(97)
%>