@nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish • 2 years agoI wishi.imgur.comimagemessage-square169arrow-up1890
arrow-up1890imageI wishi.imgur.com@nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish • 2 years agomessage-square169
minus-square@KoboldCoterie@pawb.sociallinkfedilinkEnglish46•2 years 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-square@Arbiter@lemmy.worldlinkfedilink6•2 years agoObviously you couldn’t account for every number with only two lines.
minus-square@scutiger@lemmy.worldlinkfedilink2•2 years agoEventually, it would wrap onto a second line, wouldn’t it?
minus-square@ruckblack@sh.itjust.workslinkfedilink7•2 years 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.