Whether the reuse of 3/5 modulo is ideal or not, is itself a contentious point. Codifying it with three conditions is a straight-forward translation of the three rules in the english problem description and arguably carries the logic in clearest of manner. (I suppose the test reveals a bit about your thinking though — grasp of modulo arithmetic, clever vs readable, etc.)
In reply to Re^2: The FizzBuzz Thing :(
by Anonymous Monk
in thread The FizzBuzz Thing :(
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |