nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agoI wishi.imgur.comimagemessage-square188fedilinkarrow-up1915arrow-down116
arrow-up1899arrow-down1imageI wishi.imgur.comnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agomessage-square188fedilink
minus-squareoatscoop@midwest.sociallinkfedilinkEnglisharrow-up6arrow-down2·1 year ago private bool IsEven(int number){ return number % 2 ? false : true; }
Or modulo %