我這樣寫的
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();
2021-12-22
最贊回答 / weixin_慕用1585074
??name.Length是這個(gè)二維數(shù)組的長度,它的值是16.正確答案? ? for (int i = 1; i < name.GetLength(0); i++)
2021-12-16
最新回答 / 紫色的秋
好像是對(duì)的,看看運(yùn)行報(bào)錯(cuò)的地方,可能是標(biāo)點(diǎn)的中文字符。<...code...>我的運(yùn)行成功了
2021-11-28
最新回答 / weixin_慕虎1420592
? ? ? ?你這個(gè)IF括號(hào)里面的語法不對(duì),應(yīng)該這樣:? ??? ? ? ? ? ? int age = 4;//年齡? ? ? ? ? ? if (age < 6||age > 60)? ? ? ? ? ? ? Console.WriteLine("請(qǐng)坐愛心座!");? ? ? ? ? ? else? ? ? ? ? ? ? ? Console.WriteLine("請(qǐng)堅(jiān)持一下!");
2021-10-25
age = age -2前面是一個(gè)完整的打印輸出句子后面age = age -2這個(gè)語句后面少一段語句所以運(yùn)行了也沒用。
2021-10-19
已采納回答 / 慕娘9088980
? ? ? ? ? ?int[]num=new int[]{89,90,98,56,60,91,93,85};? ? ? ? ? ? string[] xingming = new string[] {"吳松","錢東宇","伏晨","陳陸","周蕊","林日鵬","何昆","關(guān)欣"};? ? ? ? ? ?int max=num[0];? ? ? ? ? ?string name = xingming[0];? ? ? ? ??? ? ? ? ? ?for (int i=0;i<num.Lengt...
2021-09-17