By Letter: Non-alphabet | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
  Email this page to a friend


Repeat loop




<programming> (Or "do loop") A loop construct found in many imperative programming languages which repeatedly executes some instructions while a condition is true.

It is found in Pascal, BASIC and C ("do" form). The condition may be tested with a "while" or "until" keyword.

In constrast to a while loop, the "loop body" is executed once before the condition is tested.

This is useful when the condition depends on the action of the loop body.

In the following BASIC loop "Hello" is printed once despite the fact that the condition is false;

i = 2 repeat print "Hello" i = i+1 until i>0

See also while loop and for loop.



< Previous Terms Terms Containing repeat loop Next Terms >
rendezvous
REP
repeat
repeater
repeating group
do
do loop
for loop
loop
repeat
repetitive strain disorder
repetitive strain injury
REPL
replacement algorithm
Replay


Web Standards & Support:

Link to and support eLook.org Powered by LoadedWeb Web Hosting
Valid XHTML 1.0!Valid CSS!eLook.org FireFox Extensions