Hi,
I want to multiple tow values with out using * (i.e. 5*3=15)..
Is there any way....
The 'Russian peasants' method which is bit shifting and adding basically; e.g.
5*3 (3 is odd so remember the left operand == 5)
shift the left operand to the left and the right operand to the right
10*1 (1 is odd so remember the left operand == 10)
shift the left operand to the left and the right operand to the right
20*0 (the right operand equals zero so add the remembered left operands:
5+10 == 15.
If the right operand is even don't remember the left operand but take the next step
that shifts both operands.
kind regards,
Jos