L5 - B

public
yeskendir.sultanov Mar 27, 2024 Never 91
Clone
C++ l5b.cpp 21 lines (17 loc) | 316 Bytes
1
#include <bits/stdc++.h>
2
3
using namespace std;
4
5
int main() {
6
int count = 0;
7
while (true) {
8
int x;
9
cin >> x;
10
if (x == 0) {
11
break;
12
}
13
14
if (x % 2 == 0) {
15
count++;
16
}
17
}
18
19
cout << count;
20
return 0;
21
}