modify list in iterate

Run Settings
LanguageC#
Language Version
Run Command
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]); } } }
Editor Settings
Theme
Key bindings
Full width
Lines