Ategon@programming.dev to Programmer Humor@programming.dev · 1 year agoHow to detect if a number is evenprogramming.devimagemessage-square14fedilinkarrow-up116arrow-down10
arrow-up116arrow-down1imageHow to detect if a number is evenprogramming.devAtegon@programming.dev to Programmer Humor@programming.dev · 1 year agomessage-square14fedilink
minus-squarejeff 👨💻@programming.devlinkfedilinkarrow-up2·1 year agobool isEven(int num) { return !isOdd(num); } bool isOdd(int num) { return !isEven(num); }
bool isEven(int num) { return !isOdd(num); } bool isOdd(int num) { return !isEven(num); }