write an algorithm to multiply two numbers
Answers
Answered by
1
11 x 12 , algothirm = 132 .Step-by-step explanation:
Answered by
0
Answer:
One simple way is to add x , y times OR add y, x times which is simple enough and is linear. Second way is to pick any number(say x) and see which all bits are set in that number and if ith bit is set just do this: product +=y<<i//product is 0 initially and do this for all i.
Hope it is helpful :)
Similar questions