Coding challenge: FizzBuzz

Miscellaneous Forums/General Discussion/Coding challenge: FizzBuzz

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

more geeky!

For Local i:Int=1 To 100;i:|(((Not(i Mod 3))+(Not(i Mod 5)*2)) Shl 16);If (i&$ff0000) Shr 16 Print Mid( "Fizz    Buzz    FizzBuzz",1+(((i&$ff0000) Shr 16)-1)*8,8) Else Print i&$ff
i:&$ff;Next


Got rid of the extra state calculation at the cost of geeky usage of the counter for storage :-)
(the counter, which is still the only variable btw!)