php bölme operatörü kullanmadan bir tamsayı bölme algoritmasını uygulamak için bir işlevi yazmak nasıl [kapalı]

0 Cevap php

How to write a function to implement an integer division algorithm without using the division operator. Floating point values and remainders may be discarded. Error conditions may be ignored.

Örneğin:

f(10, 3) is 3

f(10, 5) is 2

f(55, 5) is 11

0 Cevap