string[] names=new string[3]{"吴松","钱东宇","伏晨"};
int[] score=new int[3]{89,90,98};
int max=score[0];
string max_name = "吴松";
for(int i=1;i<3;i++)
{
if(score[i]>max)
{
max=score[i];
max_name = names[i];
}
}
Console.Write("分数最高的是" + max_name + ",分数是" + max);
int[] score=new int[3]{89,90,98};
int max=score[0];
string max_name = "吴松";
for(int i=1;i<3;i++)
{
if(score[i]>max)
{
max=score[i];
max_name = names[i];
}
}
Console.Write("分数最高的是" + max_name + ",分数是" + max);
const string CITY = "布宜诺斯艾利斯";//常量,城市
const string NAME = "列奥波尔多·福图纳托·加尔铁里·卡斯特利";//常量,姓名
Console.WriteLine(NAME + "出生在" + CITY + "的一个工人家庭");//使用常量
Console.ReadLine();
const string NAME = "列奥波尔多·福图纳托·加尔铁里·卡斯特利";//常量,姓名
Console.WriteLine(NAME + "出生在" + CITY + "的一个工人家庭");//使用常量
Console.ReadLine();