int[] score = new int[] {29,90,98,98,60,91,93,85 };
string[] name = new string[] { "吴松", "钱东宇", "伏晨", "陈陆", "周蕊", "林日鹏", "何昆", "关欣" };int max=0;string maxname = "";for (int i = 0; i < 8;i++ ){if (max < score[i]){max=score[i];maxname= name[i];
}
}
Console.Write("分数最高的是{0},分数是{1},", maxname, max);
string[] name = new string[] { "吴松", "钱东宇", "伏晨", "陈陆", "周蕊", "林日鹏", "何昆", "关欣" };int max=0;string maxname = "";for (int i = 0; i < 8;i++ ){if (max < score[i]){max=score[i];maxname= name[i];
}
}
Console.Write("分数最高的是{0},分数是{1},", maxname, max);
static void Main(string[] args){ int max = 0;int j=0; string[,] chengji={{"吴松","89"},{"钱东宇","90"},...}};max = int.Parse(chengji[0,1]);
for(int i = 0;i < 7;i++){ if(int.Parse(chengji[i,1])>max){max = int.Parse(chengji[i,1]);j=i;}
}Console.Write("分数最高的是"+chengji[j,0]+",成绩是"+chengji[j,1]);
}
for(int i = 0;i < 7;i++){ if(int.Parse(chengji[i,1])>max){max = int.Parse(chengji[i,1]);j=i;}
}Console.Write("分数最高的是"+chengji[j,0]+",成绩是"+chengji[j,1]);
}
string[] names=new string[]{"吴松",...};
int[] scores=new int[]{29,...};
int score=scores[0];
int j;
for(int i=0;i<scores.Length;i++){
if(scores[i]>score){
score=scores[i];
j=i;
}
}
Console.Write("分数最高的是{0}","分数是{1}",names[j],score)
int[] scores=new int[]{29,...};
int score=scores[0];
int j;
for(int i=0;i<scores.Length;i++){
if(scores[i]>score){
score=scores[i];
j=i;
}
}
Console.Write("分数最高的是{0}","分数是{1}",names[j],score)
最新回答 / 风顺
常见问题是Console.write()与Console.Writeline();任务的要求达到了。但是系统通关有额外的数据输出格式;输出没问题,注意一下你的输出结果与系统给的结果在形式上有什么不一样,稍作修改,就OK了
2017-08-17
{
static void Main(string[] args)
{
for (int y = 1; y <= 7; y++)
{
for (int x=1;x<=y;x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}
}
}
}
我觉得没毛病啊
static void Main(string[] args)
{
for (int y = 1; y <= 7; y++)
{
for (int x=1;x<=y;x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}
}
}
}
我觉得没毛病啊
2017-08-17