README.md
December 5, 2022 ยท View on GitHub
Description
Tell if a number is odd in one line of code. (and if its not odd its even, but i dont have to tell you that)
More Info
| Submitted On | |
| By | Dave Katrowski |
| Level | Beginner |
| User Rating | 5.0 (10 globes from 2 users) |
| Compatibility | VB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0, VB Script, ASP (Active Server Pages) |
| Category | Math/ Dates |
| World | Visual Basic |
| Archive File |
API Declarations
'none
Source Code
Function IsOdd(Var as integer)
IsOdd = -(Var And 1)
End Function