Advertisement
leminhkt

noname55

May 20th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;  
  3.  
  4. long long x, d;
  5. int main(){
  6.     freopen("sn.txt", "r", stdin);
  7.     freopen("kq.txt", "w", stdout);
  8.     while(cin >> x)
  9.         if(x%2 == 0)
  10.             d++;
  11.     cout << d;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement