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