為啥用自減不可以,用自加可以?
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
??? class Program
??? {
??????? static void Main(string[] args)
??????? {
??????????? int x;//循環計數變量
??????????? int x=5;//行① 請填寫計數變量的初始化語句
???????????
???????????
??????????? while (? x>=1? )//行② 請填寫循環條件
??????????? {
??????????????? Console.Write("加油!");
??????????????? //行③ 請填寫計數變量的自加語句
??????????????? x--;
??????????? }
??????? }
??? }
}
2019-02-13
可以了,馬虎了,哈哈哈