I’m talking about the div(X,Y) function in C which returns the number of times X is reduced by Y
if you’re confused, I’m talking about this:
div(30,5) returns 6 (30 is reduced 6 times by 5)
div(34,7) returns 4 (you can reduce 30 by 7 four times, leaving 6 behind)
Is there such a function?
I don’t believe there is, although creating your own is rather simple: