Westonci.ca is your go-to source for answers, with a community ready to provide accurate and timely information. Join our platform to connect with experts ready to provide detailed answers to your questions in various areas. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.

Write an equivalent expression for n x a using only addition.

Sagot :

>> (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