Escriviu un programa que donats un enter positiu n i un enter 1 ≤ d ≤ 9, calculi quantes vegades apareix el dígit d a n.
Entrada
L’entrada consisteix en un enter n > 0 i un enter d, 1 ≤ d ≤ 9.
Sortida
Escriu el nombre de vegades que apareix el dígit d a n.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.