Guest User

Untitled

a guest
Feb 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int mass[ 10]={10,20,4,15, 1, 2, 3, 4, 5, 6};
  7. int summator=0;
  8.  
  9. for (int i=0; i< 10; i++)
  10. {
  11.    cout<<mass[ i]<< "  ";
  12.    if(!(mass[ i]%2)) summator++;
  13. }
  14.  
  15. cout<< endl;
  16. cout<< "collichestvo chetnykh= "<< summator<< endl;
  17. }
Add Comment
Please, Sign In to add comment