📅  最后修改于: 2022-03-11 14:48:29.186000             🧑  作者: Mango
int[] numarray = {1, 2, 3 ,4};
foreach(int num in numarray){
/* You can do a lot of things with the elements,
I am going to just print them to the console. */
System.Console.WriteLine(num);
}