for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <=y; x++)
{
Console.Write(x);
}
// Console.WriteLine();//换行
}
这样能过,换行反而过不了
{
for (int x = 1; x <=y; x++)
{
Console.Write(x);
}
// Console.WriteLine();//换行
}
这样能过,换行反而过不了
2016-06-16
string[] name = new string[8] { "吴松", "钱东宇",,, };
int[] grade = new int[8] { 89, 90,,, };
Console.Write("分数最高的是");
for (int i=1;i<grade.Length;i++)
{
if(grade[i-1]<grade[i])
continue;
else
{
Console.Write(name[i-1]+",分数是"+grade[i-1]);
break;
}
}
空格也算字数
int[] grade = new int[8] { 89, 90,,, };
Console.Write("分数最高的是");
for (int i=1;i<grade.Length;i++)
{
if(grade[i-1]<grade[i])
continue;
else
{
Console.Write(name[i-1]+",分数是"+grade[i-1]);
break;
}
}
空格也算字数