Computer Science, asked by Mousumii, 3 months ago

52. An interesting method of multiplication of integers (not very large numbers) can be illustrated by
the following example. If the numbers 17 and 19 are to be multiplied, they are put at the top of two
columns as shown below:
17
19
The numbers at the left hand side is successively divided by 2 (integer division) while the other is
successively multiplied by 2. The results are written one below the other, in their respective columns.
The process is repeated till the column containing the division results reaches 1. At this stage all the
numbers in the right hand column are struck off, where numbers corresponding to them on the left
hand column are even.
17
19
8 (even)
4 (even)
2 (even)
76
1
304
Now the remaining numbers on the right hand side are added: 19+304=323, and the result is equal to
the product of 17 and 19.
Write a program to input two 2-digit numbers, and find their product using the above technique.

Answers

Answered by mkdevda
0

Answer:

304 is the ans of the questio

Similar questions