![]() while (条件表达式) { 代码语句 } 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(); } } } |
|
来自: 工厂应用 > 《51自学网C#学习笔记》