Skip to content

Commit

Permalink
doc: update cs.md (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
itldg committed Jun 28, 2023
1 parent 4039d6f commit fdb5b72
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/cs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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# 数据类型
---------------------

Expand Down

0 comments on commit fdb5b72

Please sign in to comment.