do-while loop
do-while loop A form of programming loop in which the condition for termination (continuation) is computed each time around the loop. There are several variants on this basic idea. For example, Pascal has
while 〈condition〉 do
begin
〈statements〉
end
and also
repeat
〈statements〉
until 〈condition〉
The first is a while loop and the second is a repeat-until loop. Apart from the obvious difference that the first specifies a continuation condition while the second specifies a termination condition, there is a more significant difference. The while loop is a zero-trip loop, i.e. the body will not be executed at all if the condition is false the first time around. In contrast, the body of a repeat-until loop must be obeyed at least once.
Similar constructs are found in most languages, though there are many syntactic variations. See also do loop.
while 〈condition〉 do
begin
〈statements〉
end
and also
repeat
〈statements〉
until 〈condition〉
The first is a while loop and the second is a repeat-until loop. Apart from the obvious difference that the first specifies a continuation condition while the second specifies a termination condition, there is a more significant difference. The while loop is a zero-trip loop, i.e. the body will not be executed at all if the condition is false the first time around. In contrast, the body of a repeat-until loop must be obeyed at least once.
Similar constructs are found in most languages, though there are many syntactic variations. See also do loop.
More From encyclopedia.com
Diploidy , diploidy The diploid condition.
diploidy The diploid condition.
diploidy The diploid condition. CONDITION , con·di·tion / kənˈdishən/ • n. 1. the state of something, esp. with regard to its appearance, quality, or working order: the wiring is in good condit… Conditioned Responses , Conditioned responses
In classical conditioning, behavior that is learned in response to a particular stimulus.
Reflexive behaviors occur when an ani… Ivan Pavlov , Pavlov, Ivan
Pavlov, Ivan 1849-1936
Ivan Petrovich Pavlov, a Russian physiologist, received a Nobel Prize for his experimental studies of the interac… Ivan Petrovich Pavlov , Pavlov, Ivan Petrovich
Pavlov, Ivan Petrovich
1849–1936
RUSSIAN PHYSIOLOGIST, PSYCHOLOGY RESEARCHER
ST. PETERSBURG UNIVERSITY, 1875; IMPERIAL MEDICAL… Odderade , Odderade The third interstadial within the Weichselian, which occurred between 70 000 years bp and 60 000 years bp, between the Brørup and Moershoofd…
You Might Also Like
NEARBY TERMS
do-while loop