Finally a clear understandable and readable version!
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Aw come on Claire! sprintf() it to a buffer then check if buf[strlen(buf)-1] is ‘0’, ‘2’, ‘4’, ‘6’, or ‘8’.
-
Oh here’s another way that works on a 64 bit or fewer binary computer: int isEven(int n){ n *= n; n *= n; n *= n; n *= n; n *= n; n *= n; return n == 0; }
End of conversation
New conversation -
-
-
-
you may need a big stack for negative numbers, but that's user error
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.