Created
February 28, 2020 05:44
-
-
Save parzibyte/c7083ab4a36c119947a58a7068bb42bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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