Hey, my friend asked me how to do binary division in C, but I don't know how. I am passing the question along to the board. This is what he asked me:
How do you do:
T = 1101100011000110001100 /100
remainder = 000
THanks for any help.
Hey, my friend asked me how to do binary division in C, but I don't know how. I am passing the question along to the board. This is what he asked me:
How do you do:
T = 1101100011000110001100 /100
remainder = 000
THanks for any help.
It is the same thing as base 10.
1100 (12 base 10) / 10 (2 base 10) = 110 (6 base 10)
If you want the answer of binary division as base 10 then just convert it after the dividing is done.