Untitled
Anonymous
c_cpp
10/19/2023 5:11 PM
424 B
22
Indexable
//КОШЕЛЕВ ДАНИИЛ
//произведение чисел
#include <iostream>
using namespace std;
int main() {
int a;
bool boo = true;
cin >> a;
int bo = 1;
int s = 0;
while (a>0) {
bo = a % 10;
if (bo % 2 == 0) {
s += 1;
}
a = (a - a % 10) / 10;
}
cout << s;
}Editor is loading...