0
$\begingroup$

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?

$\endgroup$
2
$\begingroup$

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

$\endgroup$
  • $\begingroup$ Ok thanks man for being very straight forward. $\endgroup$ – Karl Morrison Apr 15 at 13:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.