Comment Re:I dunno... (Score 1) 776
For the first condition, I'd use
if mod(i,3) == 0 and mod(i,5)==0 then print 'fizzbuzz' ;
because (a) it reflects the problem statement, and (b) just as soon as the original program has gone into production and the programmer has gone on to another project, word will come from on high that there was an error in the spec, and they really meant to print fizzbuzz when the number is a multiple of 3 and 7, not of 3 and 5.
The important thing here is probably that the 3 and 5 test has to come first.