Asp > Code Snippets
This will check whether a number is odd or even
This will check whether a number is odd or even <% function OddOrEven(ByVal intNumber) If (intNumber MOD 2 = 0 ) Then Response.Write ("Your number is even
") Else Response.Write ("Your number is odd
") End If end function %> Now we will test this function <% OddOrEven(2) OddOrEven(97) %>
Asp Codes
ActiveX
ADO
Array
Code Snippets
Components
Data Access
Date Time
Files
Graphics
HTML Formatting
Mathematics
Miscellaneous
Sessions
SQL
Strings
Techniques
XML