¿Qué valor tiene indice al final de este código?
int[] numeros = {10, 20, 30, 40, 50};
int indice = -1;
for (int i = 0; i < numeros.Length; i++)
if (numeros[i] == 30)
indice = i;
¿Qué valor tiene indice al final de este código?
int[] numeros = {10, 20, 30, 40, 50};
int indice = -1;
for (int i = 0; i < numeros.Length; i++)
if (numeros[i] == 30)
indice = i;