Hacker News new | ask | show | jobs
by SeldomSoup 3899 days ago
No, you'd just need one increment after all of them. An increment in every else-if block is redundant because only one condition can be executed per loop.