Question: In C: 6. Write a recursive function that returns the product of the digits of its integer input parameter, n. You may assume that n
In C:
6. Write a recursive function that returns the product of the digits of its integer input parameter, n. You may assume that n is non-negative. For example, productDigits(243) should return 24, since 2 x 4 x 3 = 24.
int productDigits (int n) {
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
