On 2/1/07, Parul Puri <[EMAIL PROTECTED]> wrote:


how to divide a number by 3 without using * / %

I actually got asked this once at an interview... just like multiplication
is a sequential addition, division is a sequential subtraction. So you can
use the subtraction operator and count how many times you can subtract three
from you number until you get to a number below three (this is the
remainder).

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
   If I were to divulge it, it would overturn the world."
              -- Jelaleddin Rumi

Reply via email to