Question: Write a recursive function recMultiplier 0 that takes an integer as a parameter and returns the value of all the digits multiplied by one another.
Write a recursive function recMultiplier 0 that takes an integer as a parameter and returns the value of all the digits multiplied by one another. You may not convert the number into any other type to isolate the digits. The following shows several sample runs of the function: 3. >>recMultiplier (111) >>>recMultiplier (123) 6 >>recMultiplier (234) 2 4 >>>recMultiplier (345) 60 >>recMultiplier (3) 3 >>> recMultiplier (99) 81 >>> recMultiplier (999) 729 >>>recMultiplier (0) 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
