Created
November 13, 2019 04:13
-
-
Save parzibyte/f3d6c93c1f7421c6e0e80695d58a6f97 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Obtener media | |
int sumatoria = 0; | |
for (int x = 0; x < longitud; x++) { | |
sumatoria += arreglo[x]; | |
} | |
float media = (float) sumatoria / (float) longitud; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment