為什么這樣不行??
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? int x = 1;//循環(huán)計(jì)數(shù)變量
? ? ? ? ? ? //行① 請?zhí)顚懹?jì)數(shù)變量的初始化語句
? ? ? ? ? ??
? ? ? ? ? ??
? ? ? ? ? ? while (x <= 5)//行② 請?zhí)顚懷h(huán)條件
? ? ? ? ? ? {
? ? ? ? ? ? ? ? Console.Write("加油!");
? ? ? ? ? ? ? ? x++;//行③ 請?zhí)顚懹?jì)數(shù)變量的自加語句
? ? ? ? ? ? ? ??
? ? ? ? ? ? }
? ? ? ? }
? ? }
}
2020-08-17
這個(gè)代碼沒有問題,反正我是可以正常運(yùn)行