171k views
1 vote
Write an equivalent expression for n x a using only addition.

1 Answer

7 votes
>> (for k = 0; k < n; ++k)
>>>> a += a;
>>
> or in any manner you choose, the sum of a + a + a + ... + a (repeated n times).
>> Integer multiplication is the same as repeated addition
User EpicUsername
by
8.2k points