We process the digits of the number - 3
Problem
Given a natural number
N that does not contain the digit
0. Determine the product of its digits that are multiples of
z. If there are no digits that are multiples of
z, then print
0.
Input
Enter two numbers separated by a space, first a natural number
N, then -
z (
\(0 < z <= 9\ )).
Imprint
Output the answer to the problem.
Examples
Запрещенные операторы: break; list; [