Basic <-> Pascal | Loop with condition on the beginning
Basic  Used keywords: do  while  loop 
do while loop
Description
do while condition
statements
loop
Input
- condition - Logical value The condition can be any expression
 - statements - statements
 
Examples
Basic
Loop with condition on the beginning the possible of use:i=0
do while i<10
 i=i+1
loop
x =0
do while i<20
 i= i+2
 if i=16 then
    continue while
 end if
 x=x+1 
loop
.
Pascal  Used keywords: do  while 
while do
Description
while condition do statement;Input
- condition - Logical value The condition can be any expression
 - statement - statements
 
Examples
Pascal
Loop with condition on the beginning the possible of use:i:=0;
while i<10 do inc(i);
x :=0;
while i<20 do
begin
 i:= i+2;
 if i=16 then
 begin
    continue
 end;
 inc(x); 
end;Basic  Used keywords: while  wend 
while wend
Description
while condition
statements
 wend
Input
- condition - Logical value The condition can be any expression
 - statements - statements
 
Examples
Basic
Loop with condition on the beginning the possible of use:i=0
do while i<10
 i=i+1
loop
x =0
do while i<20
 i= i+2
 if i=16 then
    continue while
 end if
 x=x+1 
loop
.
Pascal  Used keywords: do  while 
while do
Description
while condition do statement;Input
- condition - Logical value The condition can be any expression
 - statement - statements
 
Examples
Pascal
Loop with condition on the beginning the possible of use:i:=0;
while i<10 do inc(i);
x :=0;
while i<20 do
begin
 i:= i+2;
 if i=16 then
 begin
    continue
 end;
 inc(x); 
end;Loop with condition on the beginning in another programming language:
Differences to: