Question: Loop from -20 to 40. Display all the numbers that are multiples of 4. Also indicate which of these displayed numbers are the multiples of 6 and subtract the multiples of 6 from each other. Display the answer
My coding:
Code:
For intX = -20 To 40
If intX Mod 4 = 0 Then
lstDisplay.Items.Add(intX & " is a multiple of 4 (Four)")
End If
Next
lstDisplay.Items.Add("The answer is ")
And my other problem is when using mod to get the multiples of 4, it shows 0 as a multiple of 4 which is wrong
thanks in advance






