|
-
Jun 6th, 2000, 09:21 AM
#1
Thread Starter
Junior Member
Hi there!!
Here's a simple question!!
How do I check if a number is odd or even??
Regards!!
-
Jun 6th, 2000, 09:35 AM
#2
Addicted Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|