我这样写的
for (int x=0;x<=6;x++)
{
for(int y=0;y<=6;y++)
{
if (y==x||y==6-x)
Console.Write('o');
else
Console.Write('.');
}
Console.WriteLine();
for (int x=0;x<=6;x++)
{
for(int y=0;y<=6;y++)
{
if (y==x||y==6-x)
Console.Write('o');
else
Console.Write('.');
}
Console.WriteLine();
最赞回答 / weixin_慕用1585074
name.Length是这个二维数组的长度,它的值是16.正确答案 for (int i = 1; i < name.GetLength(0); i++)
2021-12-16
最新回答 / weixin_慕虎1420592
你这个IF括号里面的语法不对,应该这样: int age = 4;//年龄 if (age < 6||age > 60) Console.WriteLine("请坐爱心座!"); else Console.WriteLine("请坚持一下!");
2021-10-25
已采纳回答 / 慕娘9088980
int[]num=new int[]{89,90,98,56,60,91,93,85}; string[] xingming = new string[] {"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"}; int max=num[0]; string name = xingming[0]; for (int i=0;i<num.Lengt...
2021-09-17