You are viewing a single comment's thread. Return to all comments →
It doesn't avoid any comparisons but you an save characters in the comparisons.
i%3<1 is one less character than i%3==1
Seems like cookies are disabled on this browser, please enable them to open this website
FizzBuzz
You are viewing a single comment's thread. Return to all comments →
It doesn't avoid any comparisons but you an save characters in the comparisons.
i%3<1 is one less character than i%3==1