Ategon@programming.dev to Programmer Humor@programming.dev · 1 year agoHow to detect if a number is evenprogramming.devimagemessage-square15fedilinkarrow-up119arrow-down11
arrow-up118arrow-down1imageHow to detect if a number is evenprogramming.devAtegon@programming.dev to Programmer Humor@programming.dev · 1 year agomessage-square15fedilink
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); }