@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-squareroboticalinkfedilink12•edit-22 years 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