En/Je/On 2010-11-27 02:32, Marcel Kilgus escribió / skribis / wrote :

> > 1for i=1to 100:print i!"FIZZ"(to 4*not i mod 3);"BUZZ"(to 4*not i mod 5)
> This is pure awesomeness, I wish I had thought of that!

It's "Forthness" :-) I'm used to "think in Forth" in any other programming
language.

> 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))

It seems unbeatable... I wish I had thought of that! ;-)

Marcos

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

Reply via email to