using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _19.流程控制之無限循環
{
class Program
{
static void Main(string[] args)
{
// 無限循環也稱死循環,永不終止的循環。
// 使用do...while語句書寫無限循環
{
do
{
} while (true);
}
// 使用while語句書寫無限循環
{
while (true)
{
}
}
// 使用for語句書寫無限循環
{
for (; ; )
{
}
}
}
}
}免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。