Return the number of integers within the range of a and b that are divisible by x

29 Views Asked by At

So I have a question here:

Return the number of integers within the range of a and b that are divisible by x.

So I have, a = 0, b = 17 and x = 17.

Apparently the answer is 2.

I understand that 17 / 17 is 1, I just don't understand how 0 / 17 can count?

1

There are 1 best solutions below

1
On BEST ANSWER

$0/17 = 0$ which is a perfectly good integer.