|
-
February 24th, 2000, 04:22 PM
#1
How to find out that the remainder of two number is 1.
I want to test in a loop any time I have a number dividing another one ,
could you please tell how
Thanks
-
February 24th, 2000, 05:44 PM
#2
Re: How to find out that the remainder of two number is 1.
Use should use modulus (ie '%')
For example: x%y = remainder of x/y
so 4%2 = 0
5%3 = 2
Dustin
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
|