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