我這錯(cuò)哪里了?
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
??? class Program
??? {
??????? static void Main(string[] args)
??????? {
??????????? for(int y=1;y<=7;y++)
??????????? {
??????????????? for(int x=1;x<=7;x++)
??????????????? {
??????????????????? if(x=y||x+y=8)
??????????????????? {
??????????????????????? Console.Write("0");
??????????????????? }
??????????????????? else
??????????????????? {
??????????????????????? Console.Write(".");
??????????????????? }
??????????????? }
??????????????? Console.WriteLine();
??????????? }
??????????? //請(qǐng)完善代碼
???????????
??????? }
??? }
}
2016-11-05
if判斷那里應(yīng)該是if(x==y||x+y==8),=是賦值而==是判斷