@[email protected] to Lemmy [email protected]English • 8 months agoI wishi.imgur.commessage-square185fedilinkarrow-up1906
arrow-up1888imageI wishi.imgur.com@[email protected] to Lemmy [email protected]English • 8 months agomessage-square185fedilink
minus-square@[email protected]linkfedilinkEnglish5•8 months ago private bool IsEven(int number){ return number % 2 ? false : true; }
Or modulo %