Untitled

Anonymous
plain_text
10/21/2023 6:24 PM
308 B
19
Indexable
#include <iostream>
using namespace std;

int main()
{
    int n, c=0;
    cin >> n;

    do {
        int digit = n % 10;
        n /= 10;
        if (digit %2 == 0) c++;
    } while (n > 0);
    cout << c << endl;
}
Editor is loading...