Recursive Multiplication C++

Problem

Write a recursive function to compute the product of two positive integers.

Solution

The product of two positive integers (A*B) is nothing but the sum of the first integer (A), (B) times

Code

Here is the code in C++

Add a Comment

Your email address will not be published. Required fields are marked *