From 338d94b517cbda5de27bfe9c889e0ba231b6e1fb Mon Sep 17 00:00:00 2001 From: zaibugemi <34958019+zaibugemi@users.noreply.github.com> Date: Sun, 14 Oct 2018 00:27:41 +0500 Subject: [PATCH] Add more information about Do while loop (#18385) --- client/src/pages/guide/english/cplusplus/loops/index.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/pages/guide/english/cplusplus/loops/index.md b/client/src/pages/guide/english/cplusplus/loops/index.md index f596ae40f7..f9eef1121d 100644 --- a/client/src/pages/guide/english/cplusplus/loops/index.md +++ b/client/src/pages/guide/english/cplusplus/loops/index.md @@ -26,8 +26,9 @@ Therefore, in order to solve such problems loops are introduced. There are different types of loop functions: ### While and do while loops -While and do while loops allow you to make the loop until a condition finishes. -The difference between While and Do while is that Do while always executes once. +While and do while loops allow you to run the loop until a condition finishes. +The difference between While and Do while is that Do while loop always executes atleast once. +The very use of Do while loop can be seen in the scenarios when the number of times that the loop will run depends upon the first iteration of the loop. Here you can see an example: ``` c++ while (condition){