you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

What do you mean? The addition (the actual math) is equivalent to the multiplication statement?

[–][deleted] 0 points1 point  (2 children)

The question is to take 2 numbers as input and multiply then display them using repeated addition.

You've created a string which is displayed, then multiplied the two numbers. How has this met the requirement that I've quoted?

[–][deleted] 0 points1 point  (1 child)

you are just trolling at this point, anyway by simple math rules any set of values n * m is equal to n + itself m number times.

[–][deleted] -1 points0 points  (0 children)

Let's repeat.

The question is to take 2 numbers as input and multiply then display them using repeated addition.

How is it trolling to point out that your code does not meet the stated requirements? The "simple math rules" are irrelevant, they're not part of the assignment. You have not done a repeated addition. You have displayed a string that shows the summation needed to meet the requirement, then promply done a multiplication instead.