Created
October 16, 2019 19:39
-
-
Save parzibyte/3e5a0bea8dbffe0feeeca6bf4b242e07 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
for (int x = 0; x < longitud; x++) { | |
int numeroActual = numeros[x]; | |
// Sumar el número actual a la sumatoria | |
sumatoria = sumatoria + numeroActual; | |
// También se puede sumar de forma más simple: | |
// sumatoria += numeroActual; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment