![]() while (條件表達(dá)式) { 代碼語句 } using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _5_4_迭代語句之while語句 { class Program { static void Main(string[] args) { int num = 1; while (num<=50) { Console.WriteLine(num); num++; } Console.ReadKey(); } } } |
|