what's the best way to check an integer and see if it's evenly divisible by 5 as in there's no remainder?
is it If (Integer Mod 5) = 0 Then....?
is it If (Integer Mod 5) = 0 Then....?
Last edited:
For[/color][/size][size=2] i = 1 [/size][size=2][color=#0000ff]To[/color][/size][size=2] 100
[/size][size=2][color=#0000ff]If[/color][/size][size=2] i [/size][size=2][color=#0000ff]Mod[/color][/size][size=2] 5 = 0 [/size][size=2][color=#0000ff]Then
[/color][/size][size=2]TextBox1.Text &= i & ", " [color=darkgreen]'will return:5, 10, 15, 20 and so on ....[/color]
[/size][size=2][color=#0000ff]End [/color][/size][size=2][color=#0000ff]If
[/color][/size][size=2][color=#0000ff]Next