Ategon@programming.dev to Programmer Humor@programming.dev · 2 years agoHow to detect if a number is evenprogramming.devimagemessage-square11fedilinkarrow-up113arrow-down11
arrow-up112arrow-down1imageHow to detect if a number is evenprogramming.devAtegon@programming.dev to Programmer Humor@programming.dev · 2 years agomessage-square11fedilink
minus-squarejeff 👨💻@programming.devlinkfedilinkarrow-up1·2 years 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); }