nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 10 months agoI wishi.imgur.comimagemessage-square189fedilinkarrow-up1923arrow-down117
arrow-up1906arrow-down1imageI wishi.imgur.comnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 10 months agomessage-square189fedilink
minus-squareoatscoop@midwest.sociallinkfedilinkEnglisharrow-up7arrow-down2·10 months ago private bool IsEven(int number){ return number % 2 ? false : true; }
Or modulo %