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?
June 3rd 19 at 19:41
1 answer
June 3rd 19 at 19:43
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.
The first option is enough. The second option is izdevatelstvo - Pansy.Fe commented on June 3rd 19 at 19:46
That no one denies) - aniy commented on June 3rd 19 at 19:49
You missed the step with the definition of a larger number - Elna.Volkman92 commented on June 3rd 19 at 19:52

Find more questions by tags Java