Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int count(double vect[], int n)
- {
- double ma = 0;
- for(int i = 0; i<n; ++i)
- ma+=vect[i];
- ma/=n;
- int c = 0;
- for(int i = 0; i<n; ++i){
- if(vect[i]>=ma) ++c;
- }
- return c;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement