@coboldthefox.bsky.socialCobold 🦊👑 @coboldthefox.bsky.social
2026-09-28 16:48 UTC
Saw this brought up vaguely, so I figured I'd add something informative. You can solve this problem by using the Modulo Operator ( % ) which returns the remainder of a division. Ex: 4 % 2 = 0 | 5 % 2 = 1 1 = odd, 0 = even Combine with Extension methods to reuse anywhere!
2 pictures (not shown on this phone)
2 likes, 0 reposts, 1 replies
3 Next post4 More from @coboldthefox.bsky.socialBackBluesky home