我有以下代码,可以对第一个元素起作用...但我无法弄清如何对数组上的所有元素进行操作... 预先感谢。
int[] ListNumb1 = new int[] { 2, 4, 6 };
int[] ListNumb2 = new int[] { 3, 1, 9 };
if (ListNumb1[0] < ListNumb2[0])
{
Console.WriteLine(ListNumb1[0]);
}
else
Console.WriteLine(ListNumb2[0]);
Console.ReadLine();