While loop - Wikipedia, the free encyclopedia
In most computer programming languages, a while loop is a control flow statement that allows code to be executed repeatedly based on a given boolean condition. The while loop can be thought of as a ...
en.wikipedia.org/wiki/While_loop
Do while loop - Wikipedia, the free encyclopedia
In most computer programming languages, a do while loop , sometimes just called a do loop , is a control flow statement that allows code to be executed repeatedly based on a given Boolean conditio...
en.wikipedia.org/wiki/Do_while_loop
The while loop is even easier to use than the for loop. ... Even easier to use than the for loop is the while loop. A while loop doesn't initialize or increment any fields automatically as part of the command, it just tests a condition and executes the loop for as long as the condition remains true.
javascript.about.com/library/bltut18.htm
The difference between do-while and while is that do-while evaluates its expression at the bottom of the loop instead of the top. Therefore, the statements within the do block are always executed at least once, as shown in the following DoWhileDemo program:
java.sun.com/docs/books/tutorial/java/nutsandbolts/whil... java.sun.com/docs/books/tutorial/java/nutsandbolts/while.html
Advanced C users may be familiar with a different usage of the do-while loop, to allow stopping execution in the middle of code blocks, by encapsulating them with do-while (0), and using the break statement.
www.php.net/manual/en/control-structures.do.while.php www.php.net/manual/en/control-structures.do.while.php
Like with the if statement, you can group multiple statements within the same while loop by surrounding a group of statements with curly braces, or by using the alternate syntax:
www.php.net/manual/en/control-structures.while.php www.php.net/manual/en/control-structures.while.php
Examples - while loops ... #include <iostream.h>; int main ( ); { const int HIGHGRADE = 100; int num = 0; float grade, total, average; grade = total = average = 0.0; cout << "Please enter the quiz grades" << endl; cout << "When all grades have been entered, enter any number greater than 100" << endl;
www.cse.unr.edu/~humphrey/201/lecture_notes/while_loop_... www.cse.unr.edu/~humphrey/201/lecture_notes/while_loop_examples.html
9.2. The while loop ... The while construct allows for repetitive execution of a list of commands, as long as the command controlling the while loop executes successfully (exit status of zero). The syntax is: ... 9.2.2.3. Using keyboard input to control the while loop...
www.redhat.com/mirrors/LDP/LDP/Bash-Beginners-Guide/htm... www.redhat.com/mirrors/LDP/LDP/Bash-Beginners-Guide/html/sect_09_02.html
The bracket construct in a while loop is nothing more than our old friend, the test brackets used in an if/then test. In fact, a while loop can legally use the more versatile double-brackets construct (while [[ condition ]]).
tldp.org/LDP/abs/html/loops1.html tldp.org/LDP/abs/html/loops1.html
The while Loop ... The while loop loops through a block of code while a specified condition is true. ... The do...while loop is a variant of the while loop. This loop will execute the block of code ONCE, and then it will repeat the loop as long as the specified condition is true.
www.w3schools.com/js/js_loop_while.asp www.w3schools.com/js/js_loop_while.asp
Definitions