Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 6, 2019 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/67ad5994fd879fac682369a0343d7807 to your computer and use it in GitHub Desktop.
Save parzibyte/67ad5994fd879fac682369a0343d7807 to your computer and use it in GitHub Desktop.
double promedioDeArreglo(int arreglo[], int cantidadDeElementos){
double suma = 0;
for (int x = 0; x < cantidadDeElementos; x++){
suma = suma + arreglo[x];
}
return suma / cantidadDeElementos;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment