Write a recursive function that counts the number of even digits of the given number.
The main program must contain the input of initial data, the call of the function and the output of the result
Loops are not allowed
Input: The input string contains one natural number N .
Output: The program should output the number of even digits of the entered number.
Examples
# |
Input |
Output |
1 |
123456 |
3 |
2 |
13579 |
0 |
Запрещенные операторы:for;while;do