While loop
programming
The loop construct, found in nearly all procedural languages, that executes one or more instructions (the “loop body”) repeatedly so long as some condition evaluates to true. In contrast to a repeat loop, the loop body will not be executed at all if the condition is false on entry to the while.
For example, in C, a while loop is written
while () ;
where is any expression and is any statement, including a compound statement within braces “..”.
A for loop, e.g. in the C language, extends the while loop syntax to collect pre-loop initialisation and loop-end logic into the beginning of the statement.
Perl provides the “until” loop that loops until the loop condition is true.
(2009-10-07)
Read Also:
- Whiling
noun 1. a period or interval of time: to wait a long while; He arrived a short while ago. 2. Archaic. a particular time or occasion. conjunction 3. during or in the time that. 4. throughout the time that; as long as. 5. even though; although: While she appreciated the honor, she could not accept […]
- Whilk
pronoun 1. an archaic and dialect word for which
- Whillikers
interjection, Informal. 1. (used as an intensive after gee or golly gee to express astonishment, delight, etc.)
- Whilom
adjective 1. former; erstwhile: whilom friends. adverb 2. at one time. adverb 1. formerly; once adjective 2. (prenominal) one-time; former
- Whilst
conjunction 1. Chiefly British. while. conjunction 1. (mainly Brit) another word for while (sense 1), while (sense 2), while (sense 3), while (sense 4), while (sense 5)