Last active
June 28, 2018 14:02
-
-
Save sreeprasad/95840bbd762ebd0fa4f18927b378ed7c to your computer and use it in GitHub Desktop.
check if number is odd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (a&1 == 1) then a is odd | |
if (a&1 == 0) then a is even |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment