Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

what is the assembly program of multiplication table??

axe013axe013 Member Posts: 2
Please help me how to make an assembly program that would directly print the multiplication table using loop and will also help compute the 2 inputted numbers. Now, here is the added twist. When you enter the first number, say "2" and the second number, "3" there would be an output answer of "6", of course. Now, our requirement is for the answer be emphasized on the output by deleting the column of the 1st input number, "2" before the answer "6" and also by deleting the row of the 2nd input number, "3" before the answer of "6"..

An example output is like this:

===+

Enter 1st number: 2
Enter 2nd number: 3
Answer: 6

1 * 3 4 5 6 7 8 9 10
2 * 6 8 10 12 14 16 18 20
* 6 9 12 15 18 21 24 27 30
4 8 12 16 20 24 28 32 36 40
5 10 15 18 25 30 35 40 45 50
6 12 18 20 30 36 42 48 54 60
7 14 21 24 35 42 49 56 63 70
8 16 24 28 40 48 56 64 72 80
9 18 27 36 45 54 63 72 81 90
10 20 30 40 50 60 70 80 90 100

===+


Hope you understand what this output should be. Because it's hard to do it here correctly since it is my very first time in this site.
Thank you guys.

Sign In or Register to comment.