Compartir a través de


WHILE Loops

Each language offers equivalent WHILE loop functionality.

Visual FoxPro BASIC
DO WHILE n < 100
 n = n + n
ENDDO
Do While n < 100
 n = n + n
Loop
Pascal C/C++
while n < 100 do
 n := n + n;
while(n < 100)
 n += n;

See Also

Assignment Statements | Case Sensitivity | CASE Statements | Comments | FOR Loops | IF Statements | Parameter Passing by Reference | Parameter Passing by Value | Variable Declaration