Answer:
The solution code is written in Python:
Explanation:
Firstly we define a function named it as productDigits which takes one input parameter, n. (Line 1)
Next, we create if-else statements by setting the condition if the input n divided by 10 is equal to 0 (this means the n is only 1 digit), the program shall return the n (Line 3-4).
Otherwise, the program will return the remainder of the n divided by 10 multiplied with the output of the recursive function calling with input n//10 (Line 5-6).
Please note the usage of // is to discard the decimal point of the division result.