¿Qué valor tiene resultado después de ejecutar este código?
int[] a = {1, 2, 3, 4, 5};
int[] b = {5, 4, 3, 2, 1};
int resultado = 0;
for (int i = 0; i < a.Length; i++)
resultado += a[i] * b[b.Length - 1 - i];
¿Qué valor tiene resultado después de ejecutar este código?
int[] a = {1, 2, 3, 4, 5};
int[] b = {5, 4, 3, 2, 1};
int resultado = 0;
for (int i = 0; i < a.Length; i++)
resultado += a[i] * b[b.Length - 1 - i];