Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int n,k;
  4. int main()
  5. { k=0;
  6. cin>>n;
  7. while(n!=0)
  8. {if(n%2==0)k=k+1;
  9. cin>>n;
  10. }if(k==0)
  11. cout<<"NU EXISTA";
  12. else
  13. cout<<k;
  14.  
  15.  
  16. return 0;
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement