for(int i=0;i<score.Length;i++)
{
if(score[i]>maxscore)
{
maxscore=score[i];
x=i;
}
}
Console.Write("分数最高的是{0},分数是{1}",name[x],maxscore);
{
if(score[i]>maxscore)
{
maxscore=score[i];
x=i;
}
}
Console.Write("分数最高的是{0},分数是{1}",name[x],maxscore);
string [] name={"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int [] score={89,90,98,56,60,91,93,85};
int maxscore=0,x=0;
int [] score={89,90,98,56,60,91,93,85};
int maxscore=0,x=0;
Console.WriteLine("{0}{1}{2}",ch[1,1],ch[1,2],ch[2,0]);
2016-10-24
答案真的太精彩了。
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= y; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= y; x++)
{
Console.Write(x);
}
Console.WriteLine();//换行
}
2016-10-22