Update while-loop content (#29108)

This commit is contained in:
Vocaoson
2019-04-09 15:42:43 +07:00
committed by The Coding Aviator
parent d63b0a4e7f
commit 4fd5a773b9

View File

@ -4,7 +4,7 @@ title: While Loop
# While Loop # While Loop
The while loop executes a block of code until a specified condition is false. Because the test of the while expression takes place before each execution of the loop, a while loop executes zero or more times. This differs from the do loop, which executes one or more times because the test of the expression takes place after the execution of the loop.<sup>1</sup> The while loop executes a block of code until a specified condition is false. Because the test of the while expression takes place before each execution of the loop, a while loop executes zero or more times. This differs from the do loop, which executes one or more times because the test of the expression takes place after the execution of the loop.
## Example ## Example
```csharp ```csharp