improved formatting (#33181)
I have made two changes, added a code block around `while()` syntax and fixed the formatting of H3 title Sources
This commit is contained in:
		
				
					committed by
					
						 Paul Happ
						Paul Happ
					
				
			
			
				
	
			
			
			
						parent
						
							d25638bc50
						
					
				
				
					commit
					4b581c9cf8
				
			| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user