string[] names=new string[]{"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int[] score=new int[]{89,90,98,56,60,91,93,85};int max=0;
for(int i=0;i<score.Length;i++)
{if(max<score[i]) max=score[i]; }
for(int j=0;j<score.Length;j++)
{if(max==score[j]) Console.WriteLine("分数最高的是"+names[j]+','+"分数是"+max);}
int[] score=new int[]{89,90,98,56,60,91,93,85};int max=0;
for(int i=0;i<score.Length;i++)
{if(max<score[i]) max=score[i]; }
for(int j=0;j<score.Length;j++)
{if(max==score[j]) Console.WriteLine("分数最高的是"+names[j]+','+"分数是"+max);}
int x=1;
bool a = ++x * x > 3;
bool b = 4>3;//请赋值
Console.WriteLine(a==b);
bool a = ++x * x > 3;
bool b = 4>3;//请赋值
Console.WriteLine(a==b);
2018-03-15
已采纳回答 / chinaBai
换行跟for循环不存在直接的关联,它们两个是相互独立的,但是究竟换不换要根据实际的情况来,我这是做题目,如果有需要就会使用换行,如果不需要那也就没必要换行
2018-03-13