16 lines
229 B
C++
16 lines
229 B
C++
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
int count = 0, n;
|
|
while (cin >> n && n != 0)
|
|
{
|
|
if (n % 2 == 0)
|
|
count++;
|
|
}
|
|
cout << count << endl;
|
|
return 0;
|
|
}
|