Computer Dictionary Online

Medical Dictionary   Law Dictionary   Legal Dictionary   Website Design

0  1  2  3  4  5  6  7  8  9  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 

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
	   print "Hello"
	   i = i+1
	 until i>0

See also while loop and for loop.


Contact the Computer Dictionary Online  ::  Link to the Computer Dictionary Online  ::  Disclaimer for Computer Dictionary Online

Computer Dictionary Online
Copyright © 2018