Computer Science, asked by apsanapradhan622, 3 days ago

WRITE an algorithm the product of any two numbers and display the results ​

Answers

Answered by guptaaryan1010
1

Answer:

accept input X

Accept Input Y

Print (X*Y)

Explanation:

only this much algortithm is required to print the product of two numbers

Answered by jolysanthosh57
0

Explanation:

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.

Similar questions