For my problem I need to figure out how to make the remainder of a modulus division problem continue into another calculation in visual basic. It is really difficult to word, so I will try to use an example:
The user enters 4500.
4500 mod 1000 = 4 times with a remainder of 500.
Now I need the 500 to continue into the next calculation.
500 mod 100 = 5
Then the output may read: Boxes of 1000: 4
Boxes of 100: 5
Can anyone explain how I would code a problem similar to this in Visual Basic?
1 Answer