You're viewing a single thread.
All Comments
183 comments
lobut @lemmy.ca Just do a while loop and subtract 2 if it's positive or plus 2 is it's negative until it reaches 1 or 0 and that's how you know, easy! /s
46 0 ReplyKoboldCoterie @pawb.social
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;
48 0 ReplyArbiter @lemmy.world Obviously you couldn’t account for every number with only two lines.
6 1 Replybouh @lemmy.world Only if your line is not long enough...
8 0 Replyruckblack @sh.itjust.works Maybe you couldn't
8 0 Replyscutiger @lemmy.world Eventually, it would wrap onto a second line, wouldn't it?
2 0 Replyruckblack @sh.itjust.works 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.
7 0 Reply
183 comments
Scroll to top