modify list in iterate
using System;
class Program {
static void Main(string[] args) {
int[] a = new int[] { 1, 2, 3, 4, 5 };
for (int i = 0; i < a.Length; ++i) {
Console.WriteLine(a[i]);
}
}
}
INFO
using System;
class Program {
static void Main(string[] args) {
int[] a = new int[] { 1, 2, 3, 4, 5 };
for (int i = 0; i < a.Length; ++i) {
Console.WriteLine(a[i]);
}
}
}