by Dave Katrowski (16 Submissions)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
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)
API Declarations'none
Function IsOdd(Var as integer)
IsOdd = -(Var And 1)
End Function