Hey Amy,
The two ARE essentially the same thing
.
The description with the subtraction you're probably seeing is something like this:
X%Y:
while (X>Y) X = X-Y
In other words. We keep taking the second operand (Y) away from the first operand (X) until we can't take it away any more. The number we're left with is the result.
e.g. 26%7
26 - 7 = 19
19 - 7 = 12
12 - 7 = 5
Now since we can no longer take away 7 (and have a non-negative answer), the result is 5.
Now think about division with a remainder. X/Y gives us the number of times Y "goes into" X, with a remainder signifying how much is left over. This is exactly what the subtraction example finds. The number of times we subtracted 7 in the above example would be the quotient of 26/7 (3) and the remainder is the same as our result (5).
Matt