Va rog imi trebuie neapărat până la ora 10:00

Răspuns:
int n, pare = 0;
cin >> n;
while (n){
if (n%10%2 == 0 ) pare++;
}
cout << pare;