Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int mass[ 10]={10,20,4,15, 1, 2, 3, 4, 5, 6};
- int summator=0;
- for (int i=0; i< 10; i++)
- {
- cout<<mass[ i]<< " ";
- if(!(mass[ i]%2)) summator++;
- }
- cout<< endl;
- cout<< "collichestvo chetnykh= "<< summator<< endl;
- }
Add Comment
Please, Sign In to add comment