Computer Science, asked by amil05, 5 months ago

write the algorithm to find product of two numbers​

Answers

Answered by palaksharma6738
2

Answer:

➡️➡️One simple way is to add x , y times OR add y, x times which is simple enough and is linear.⬅️⬅️

➡️➡️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.⬅️⬅️

Explanation:

Thank you ...

Answered by AllenGPhilip
1

Answer:

Explanation:

Step 1 : Start

Step 2 : Input A , B

Step 3 : C = (A * B)

Step 4 : Output C

Step 5 : Stop

Similar questions