From 35c38ce5f482a1b5017c571355bb768e08525088 Mon Sep 17 00:00:00 2001 From: Nitin Sharma <31216614+nitin7ind@users.noreply.github.com> Date: Sat, 11 May 2019 22:06:13 +0530 Subject: [PATCH] Simplified language. (#32814) Simplified the language, removing duplicate phrases. Also did little formatting. --- guide/english/csharp/do-while-loop/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guide/english/csharp/do-while-loop/index.md b/guide/english/csharp/do-while-loop/index.md index 81da1966c7..9c5fd4b925 100644 --- a/guide/english/csharp/do-while-loop/index.md +++ b/guide/english/csharp/do-while-loop/index.md @@ -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 `while` loops: 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 `while` loop 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!");