Functions
Function-37
Function-38
Function-39
~/algor $ cat problems/funksiya-juft-raqamlar
Count of even digits
Easy
1000 ms
128 MB
30%
Write a function EvenDigitCount(n) that returns the number of even digits ($0$, $2$, $4$, $6$, $8$) in the integer $n$.
Example 1: EvenDigitCount(2024) → 4
Example 2: EvenDigitCount(-135) → 0 — $1$, $3$ and $5$ are odd digits.
Write only the function body.
Input
One line with an integer $n$ — the argument of the function.
Output
The value returned by the function: an integer.
Note
$-10^{9} \le n \le 10^{9}$
Examples
Input #1
2024
Output #1
4
Input #2
-135
Output #2
0