為啥用自減不可以,用自加可以?
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
??? class Program
??? {
??????? static void Main(string[] args)
??????? {
??????????? int x;//循環(huán)計(jì)數(shù)變量
??????????? int x=5;//行① 請(qǐng)?zhí)顚?xiě)計(jì)數(shù)變量的初始化語(yǔ)句
???????????
???????????
??????????? while (? x>=1? )//行② 請(qǐng)?zhí)顚?xiě)循環(huán)條件
??????????? {
??????????????? Console.Write("加油!");
??????????????? //行③ 請(qǐng)?zhí)顚?xiě)計(jì)數(shù)變量的自加語(yǔ)句
??????????????? x--;
??????????? }
??????? }
??? }
}
2019-02-13
可以了,馬虎了,哈哈哈