3 ms·
Why not just if (i % 3 != 0 && i % 5 != 0) this extra boolean variable out?
by mapimopi 12y ago
Why not just
if (i % 3 != 0 && i % 5 != 0)
this extra boolean variable out?
- ivanche 12y agoI like to think it's matter of readability. "if (pureNumber)" vs. "if (i % 3 != 0 && i % 5 != 0)". Also, one extra variable vs. reversal of already mentioned condition. Yes, we're splitting hair here :)