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.

This way should be faster than mod:
For num = 1 To 100
	
	If num/3*3 = num Then
		WriteString StandardIOStream,"Fizz"
		did=1
	EndIf
	
	If num/5*5 = num Then
		WriteString StandardIOStream,"Buzz"
		did=1
	EndIf
	
	If did=0 Then
		WriteString StandardIOStream,num
	Else
		did=0
	EndIf
	
	Print
Next