mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-17 04:31:22 +08:00
doc: update cs.md (#386)
This commit is contained in:
18
docs/cs.md
18
docs/cs.md
@ -155,6 +155,24 @@ foreach(int num in numbers) {
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
```cs
|
||||
while(true)
|
||||
{
|
||||
Console.WriteLine("只要给定的条件为真,while 循环语句会重复执行");
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
```cs
|
||||
do
|
||||
{
|
||||
Console.WriteLine("与 while 类似,do...while 会确保至少执行一次循环。");
|
||||
} while( true );
|
||||
```
|
||||
|
||||
C# 数据类型
|
||||
---------------------
|
||||
|
||||
|
Reference in New Issue
Block a user