Created
August 6, 2019 05:46
-
-
Save parzibyte/67ad5994fd879fac682369a0343d7807 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
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