nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agoI wishi.imgur.comimagemessage-square188fedilinkarrow-up1925arrow-down117
arrow-up1908arrow-down1imageI wishi.imgur.comnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agomessage-square188fedilink
minus-squareKoboldCoterie@pawb.sociallinkfedilinkEnglisharrow-up48·1 year agoGod, it’s so obvious, you can do it in only two lines of code. if (number == 1 || number == 3 || number == 5 || number == 7 || number == 9...) return false; else return true;
minus-squareArbiter@lemmy.worldlinkfedilinkarrow-up6arrow-down1·1 year agoObviously you couldn’t account for every number with only two lines.
minus-squarescutiger@lemmy.worldlinkfedilinkarrow-up2·1 year agoEventually, it would wrap onto a second line, wouldn’t it?
minus-squareruckblack@sh.itjust.workslinkfedilinkarrow-up7·1 year agoWhen you run out of space, you just add a monitor to the right side. Honestly, it’s like you guys aren’t real developers.
God, it’s so obvious, you can do it in only two lines of code.
if (number == 1 || number == 3 || number == 5 || number == 7 || number == 9...) return false; else return true;
Obviously you couldn’t account for every number with only two lines.
Only if your line is not long enough…
Maybe you couldn’t
Eventually, it would wrap onto a second line, wouldn’t it?
When you run out of space, you just add a monitor to the right side. Honestly, it’s like you guys aren’t real developers.