Marcos Cruz wrote:
> 1for i=1to 100:print i!"FIZZ"(to 4*not i mod 3);"BUZZ"(to 4*not i mod 5)
>
> (73 bytes including LF).

This is pure awesomeness, I wish I had thought of that!

But now that I've seen this trick, I hereby steal it and improve it to

1FOR i=1TO 100:PRINT i!"FIZZBUZZ"(1+4*(i MOD 3>0)TO 4+4*(i MOD 5=0))

(69 bytes including LF)

I think we're getting close to the minimum ;-)

BTW, the assembler contest was I my eyes won by George, due to the
creative usage of the DBF command. I really liked that.

Cheers, Marcel

_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to