From 4b581c9cf8019df3ec33411809d5829ecae3859c Mon Sep 17 00:00:00 2001 From: Shailendra Paliwal Date: Thu, 1 Nov 2018 02:46:46 +0530 Subject: [PATCH] improved formatting (#33181) I have made two changes, added a code block around `while()` syntax and fixed the formatting of H3 title Sources --- guide/english/cplusplus/while-loop/index.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/guide/english/cplusplus/while-loop/index.md b/guide/english/cplusplus/while-loop/index.md index 6ed882fa4e..16be2c57ef 100644 --- a/guide/english/cplusplus/while-loop/index.md +++ b/guide/english/cplusplus/while-loop/index.md @@ -5,9 +5,11 @@ title: While-loop A while loop statement repeatedly executes a target statement as long as a given condition is true. Syntax: +```C++ while(condition) { statement(s); } +``` A key point of the while loop is that the loop might not ever run. When the condition is tested and the result is false, the loop body will be skipped and the first statement after the while loop will be executed. @@ -49,5 +51,5 @@ value of a: 19 ``` -###Sources -www.tutorialspoint.com +### Sources +- www.tutorialspoint.com