1. Engineering
  2. Computer Science
  3. multiplication can be performed by successive additions n x m...

Question: multiplication can be performed by successive additions n x m...

Question details

Multiplication can be performed by successive additions (N x M is computed by adding M to N times to the value 0). Create a program that adds two values stores at $100 and $101 and stores the result at the word at $102. You should be careful about the sign of the input and take this into account when devising the successive addition loop. Some good interesting example are -8388608 and -1, 8388607 and -1, -8388608 and -1. It is asking you to do multiplication by repeated addition. You can write with C or python or pseudocode. Need urgent! Thanks.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution