[Solved] C# foreach loop take values from outer loop to inner loop
try for (int i = 0; i < a.Length; i++) // or i < n if you want { print i; int z = a[i]; // this line will get value from a one by one, 0, 1, 2, 3 and so on… } Edit 1 – After seeing the comments on the other answer, … Read more