Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created May 16, 2020 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/e908147ac1deeda77e2185c64c542a6a to your computer and use it in GitHub Desktop.
Save parzibyte/e908147ac1deeda77e2185c64c542a6a to your computer and use it in GitHub Desktop.
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