From 345441a08e199099e3f4d362179a31f42f14dc01 Mon Sep 17 00:00:00 2001 From: Abbos Soatmurodov Date: Fri, 19 Jun 2026 15:45:29 +0500 Subject: [PATCH] Update introduction.md Previously, the comment implied that the loop executes only when the condition is true, which is misleading for a do-while loop. Updated the comment to clearly reflect that the loop body executes at least once before the condition (x > 10) is evaluated, and continues only if the condition remains true. This improves readability and helps avoid confusion between while and do-while behavior. --- concepts/do-while-loops/introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concepts/do-while-loops/introduction.md b/concepts/do-while-loops/introduction.md index 82035814d2..f25ded9738 100644 --- a/concepts/do-while-loops/introduction.md +++ b/concepts/do-while-loops/introduction.md @@ -7,7 +7,7 @@ int x = 23; do { - // Execute logic if x > 10 + // Always executes at least once, then repeats as long as x > 10 x = x - 2; } while (x > 10) ```