Programming-Idioms

History of Idiom 78 > diff from v1 to v2

Edit summary for version 2 :

Version 1

2015-09-01, 21:01:55

Version 2

2015-09-01, 21:02:34

Idiom #78 "do while" loop

Execute a block once, then execute it again as long as boolean condition c is true.

Idiom #78 "do while" loop

Execute a block once, then execute it again as long as boolean condition c is true.

Code
do {
	someThing();
	someOtherThing();
}while(c);
Code
do {
	someThing();
	someOtherThing();
} while(c);
Comments bubble
The block code is not repeated in the source.
Comments bubble
The block code is not repeated in the source.
Demo URL
https://ideone.com/oRSbiv
Demo URL
https://ideone.com/oRSbiv