Need a project done?

C++ Programming Developer

Search This Blog

Recursive Multiplication using addition

Write a function int Mul(int a, int b) that computes the product of two integers a and b. The only arithmetic operation that you are allowed to use is addition '+'.
Solution:

1 comment:

  1. can you do the multiplying using addition in Pass by reference?? not recursive..

    ReplyDelete

"Don't let anyone ever make you feel like you don't deserve what you want."