Hi there!!
Here's a simple question!!
How do I check if a number is odd or even??
Regards!!
Printable View
Hi there!!
Here's a simple question!!
How do I check if a number is odd or even??
Regards!!
Try dividing it by 2 and see if there is a remainder:
If your_number mod 2 = 0 then
msgbox "no remainder, your number is even"
Else
msgbox "is a remainder, your number is odd"
End if