已采纳回答 / 烟火里
string[]name=new string[]{"吴松","前东宇","伏晨","陈陆","周瑞","林日鹏","何坤","关欣"}; int[] sorce = new int[] { 89, 90, 98, 56, 60, 91, 93, 85 }; int max=sorce[0]; int y = 0; int x;//x为sorce数组的索引号,y为name数组的所以号 for(x=0;x<sorc...
2015-12-18
在我自己的VS中运行没有错啊,怎么在这里就有问题昵?
static void Main(string[] args)
{
int[] num = new int[] { 3,34,42,2,11,19,30,55,20};
for(int x=0;x<num.Length;x++)
{
if(num[x]%2==0)
Console.Write(num[x]+".");
}
}
static void Main(string[] args)
{
int[] num = new int[] { 3,34,42,2,11,19,30,55,20};
for(int x=0;x<num.Length;x++)
{
if(num[x]%2==0)
Console.Write(num[x]+".");
}
}