Computer Science, asked by samantasamu143, 6 days ago

Write an algorithm to find the new name for the product​

Answers

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

Answered by bhuvna789456
0

           The algorithm of the new name to find the product of two numbers.

Explanation:

     Algorithm:

            Step 1:   Start the program

            Step 2: Declare the three variables n1,n2,n3.

            Step 3: Read the above variables to read n1,n2,n3.

             Step 4: n1=n2*n3

              Step 5: Display the product.

               Step 6: Stop the program.

Similar questions