Created
May 16, 2020 05:30
-
-
Save parzibyte/e908147ac1deeda77e2185c64c542a6a 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++) { | |
// Sumamos. Al inicio contadorA estará en 0 y contadorB en 9 | |
int suma = arregloA[contadorA] + arregloB[contadorB]; | |
arregloC[contadorA] = suma; | |
// Avanzar en A y retroceder en B | |
contadorA++; | |
contadorB--; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment