@[email protected] to Lemmy [email protected]English • 11 months agoI wishi.imgur.comimagemessage-square188fedilinkarrow-up1928arrow-down117
arrow-up1911arrow-down1imageI wishi.imgur.com@[email protected] to Lemmy [email protected]English • 11 months agomessage-square188fedilink
minus-square@[email protected]linkfedilinkEnglish5•11 months ago private bool IsEven(int number){ return number % 2 ? false : true; }
Or modulo %