nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agoI wishi.imgur.comexternal-linkmessage-square186fedilinkarrow-up1920arrow-down117
arrow-up1903arrow-down1external-linkI wishi.imgur.comnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agomessage-square186fedilink
minus-squareoatscoop@midwest.sociallinkfedilinkEnglisharrow-up7arrow-down2·1 year ago private bool IsEven(int number){ return number % 2 ? false : true; }
Or modulo %