nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agoI wishi.imgur.comexternal-linkmessage-square188fedilinkarrow-up1919arrow-down116
arrow-up1903arrow-down1external-linkI wishi.imgur.comnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agomessage-square188fedilink
minus-squareoatscooplinkfedilinkEnglisharrow-up7arrow-down2·edit-21 year ago private bool IsEven(int number){ return number % 2 ? false : true; }
Or modulo %