我这个在vs里面运行正确,但是网站上错
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= 7; x++)
{
Console.Write(x);
if(x==y)
{break;}
}
Console.WriteLine();//换行
}
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <= 7; x++)
{
Console.Write(x);
if(x==y)
{break;}
}
Console.WriteLine();//换行
}
2016-03-01
举报