代碼不解,運行錯誤
?在這段代碼中
static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? int x = 2;
? ? ? ? ? ? do
? ? ? ? ? ? {
? ? ? ? ? ? ? ? x++;
? ? ? ? ? ? ? ? Console.Write(x+" ");
? ? ? ? ? ? }
? ? ? ? ? ? while(x>2&&x<=4);
按道理,它先執行x++,即x=3,應該打印3才對,為什么會打印2呢?
2016-03-12
怎么會錯誤,打印3對啊