Click to See Complete Forum and Search --> : How to find out that the remainder of two number is 1.


February 24th, 2000, 03:22 PM
I want to test in a loop any time I have a number dividing another one ,
could you please tell how
Thanks

DHunter21
February 24th, 2000, 04:44 PM
Use should use modulus (ie '%')

For example: x%y = remainder of x/y
so 4%2 = 0
5%3 = 2

Dustin