io@piefed.blahaj.zone to Microblog Memes@lemmy.worldEnglish · 3 days agohardest problempiefed.cdn.blahaj.zoneimagemessage-square74fedilinkarrow-up1902arrow-down116file-text
arrow-up1886arrow-down1imagehardest problempiefed.cdn.blahaj.zoneio@piefed.blahaj.zone to Microblog Memes@lemmy.worldEnglish · 3 days agomessage-square74fedilinkfile-text
minus-squareLuxyr@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up5arrow-down2·edit-22 days agoThing with this joke that his me wrong is that isn’t how if statements are written. The else does not come before the condition in any language I’ve ever used or seen. At the very least. It should be that he comes back with 1 or 13 loaves. Buy a loaf If they have eggs Buy a dozen loaves
minus-squareA_norny_mousse@feddit.orglinkfedilinkEnglisharrow-up10·edit-22 days agoThanks for proving my point 😉
minus-squarexor@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up10·2 days agoloaves = 1 if (eggs) loaves = 12
minus-squareMountainaire@lemmy.worldlinkfedilinkEnglisharrow-up1·8 hours agoNo, she said “and if,” so that should be loaves += 12, so he should have returned with 13 loaves.
minus-squareLuxyr@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up4arrow-down1·1 day agoI see that as requiring an instruction of replacement, like buy a dozen instead.
Thing with this joke that his me wrong is that isn’t how if statements are written. The else does not come before the condition in any language I’ve ever used or seen.
At the very least. It should be that he comes back with 1 or 13 loaves.
Thanks for proving my point 😉
No, she said “and if,” so that should be
loaves += 12, so he should have returned with 13 loaves.I see that as requiring an instruction of replacement, like buy a dozen instead.