Multiples of a number

Blitz3D Forums/Blitz3D Programming/Multiples of a number

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.

Graphics 200, 400, 0, 2

For n = 1 To 25
	tx = n Mod 5
	If tx <= 0 Then tx = tx + 5
	Print LSet(n,4) + tx
Next

WaitKey

tx is always in the range 1 to 5, even if you allow negative level numbers.