exemplos/8_Apontadores/notasdinamico.cpp
double media(double v[], int n){
  double m = 0.0;
  for (int i = 0; i < n; i++) //calculo da media
      m += v[i];
  m /= n;
  return m;
}
//calcula a media do vetor v
calcula a media do vetor v
calcula a media do vetor v
double media(double v[], int n){
  double m = 0.0;
  for (int i = 0; i < n; i++) 
      m += v[i];
  m /= n;
  return m;
}
double media ( double v [ ] , int n ) { double m = 0.0 ; for ( int i = 0 ; i < n ; i ++ ) m += v [ i ] ; m /= n ; return m ; }
calcula a media do vetor v
calcula a media do vetor v
//calculo da media