SHARE
TWEET

1_ofourДЗ

Zionoid Apr 25th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top