SHARE
TWEET

Untitled

a guest Oct 14th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int count(double vect[], int n)
  2. {
  3.     double ma = 0;
  4.     for(int i = 0; i<n; ++i)
  5.         ma+=vect[i];
  6.     ma/=n;
  7.    
  8.     int c = 0;
  9.     for(int i = 0; i<n; ++i){
  10.         if(vect[i]>=ma) ++c;
  11.     }
  12.     return c;
  13. }
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