Untitled
unknown
c_cpp
2 years ago
317 B
9
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...