nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agoI wishi.imgur.comexternal-linkmessage-square180fedilinkarrow-up1913arrow-down117
arrow-up1896arrow-down1external-linkI wishi.imgur.comnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agomessage-square180fedilink
minus-squarerobotica@lemmy.worldlinkfedilinkarrow-up12·edit-21 year agoDon’t forget that you can have fall-through cases, so you can simplify it even further: switch (number) { case 1: case 3: case 5: case 7: case 9: ...
Don’t forget that you can have fall-through cases, so you can simplify it even further:
switch (number) { case 1: case 3: case 5: case 7: case 9: ...
Teach me