為什么說我錯(cuò)誤
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ?for (int x=1;x<=7;x++) //請(qǐng)完善代碼
? ? ? ? ? ? { for(int y=1;y<=7;y++)
? ? ? ? ? ? {if (x==y ||x+y==8)
? ? ? ? ? ? ?Console.Write("0");
? ? ? ? ? ? else
? ? ? ? ? ? Console.Write(".");
? ? ? ? ? ? }? ?
? ? ? ? ? ? Console.WriteLine();
? ? ? ? ? ? }
? ? ? ? }
? ? }
}
2020-04-02
你輸出的是數(shù)字0吧,換成字母O試試~~
2020-03-05
for(int y=1;y<=7;y++)?? 改成? for(int y=7;y>=1;y--)? 就OK了。
2020-01-18
格式錯(cuò)誤:你for和if的格式有錯(cuò)誤