Computer Science, asked by pomrmarak8283, 1 day ago

Write a algorithm and draw a flowchart to find the product of to number ( computer )

Answers

Answered by prakashakash802
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.

Explanation:

Hope this is useful for you.

Attachments:
Similar questions