Simplified language. (#32814)

Simplified the language, removing duplicate phrases.
Also did little formatting.
This commit is contained in:
Nitin Sharma
2019-05-11 22:06:13 +05:30
committed by The Coding Aviator
parent 3938722d13
commit 35c38ce5f4

View File

@ -4,7 +4,7 @@ title: Do while loop
# Do while Loop
The `do while` loop executes a block of code once and until a condition is false. They are a particular case of <a href='https://guide.freecodecamp.org/csharp/while-loop' target='_blank' rel='nofollow'>`while` loops</a>: they execute a block of code one time and then until the condition is false. A common use of `do while` loops are input checks.
The `do while` loop executes a block of code atleast once and until a condition is false. It is a particular case of <a href='https://guide.freecodecamp.org/csharp/while-loop' target='_blank' rel='nofollow'>`while` loop</a> in which the code is executed atleast once irrespective of the while condition. A common use of `do while` loops are input checks.
## Example
```
@ -19,8 +19,8 @@ do
string input = "";
do
{
Console.WriteLine("Type A to continue: ");
input = Console.ReadLine();
Console.WriteLine("Type A to continue: ");
input = Console.ReadLine();
} while(input != "A");
Console.WriteLine("Bye!");