哪錯了??????
sing System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? for (int x=1;x<=7;x++)
? ? ? ? ? {
? ? ? ? ? ? ? for(int y=1;y<=7;y++)
? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? if(x==y||x+y==8);
? ? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? Console.Write("0");
? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? ? else
? ? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? Console.Write(".");
? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? Console.WriteLine();
? ? ? ? ? }
? ? ? ? }
? ? }
}
2021-03-18
跟0和0有啥關(guān)系,不是if后面加了;嗎 。。。。。。。。。
2019-10-29
if語句后面不能直接跟;
2019-10-26
是“o”,不是“0”