2014-04-26 22 views

回答

1

你可以嘗試重複減法。

modulus(a, b) 
    while a >= b 
     a -= b 
    return a