Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 28, 2020 05:44
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/c7083ab4a36c119947a58a7068bb42bd to your computer and use it in GitHub Desktop.
Save parzibyte/c7083ab4a36c119947a58a7068bb42bd to your computer and use it in GitHub Desktop.
// Comenzamos con el promedio, lo cual es la media
int sumatoria = 0;
for (int x = 0; x < arreglo.length; x++) {
sumatoria += arreglo[x];
}
double media = sumatoria / arreglo.length;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment