我這樣寫的
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