How in java to know how many times of a large number, subtract the lesser?
For example using Scanner, request two numbers, a and b
a = 5, b = 1;
As in java, you can learn how many times from a large number, you can subtract less? in this example, the answer would be five times, but how is this to check?
1. Evenly divide a by b (result in integer type).
2. Create a counter and loop to subtract a larger from a smaller.
The answer will lie in the counter.
With such questions more quickly find the answer in Google rather than here.