Advertisement
Zionoid

1_ofourДЗ

Apr 25th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4. int n,count;
  5. cout<<"Vvedite n"<<endl;
  6. cin>>n;
  7. while(n>0){
  8. if((n%10)%2==0)
  9. count++;
  10. n/=10;
  11. }
  12. cout<<count<<endl;
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement