Pascal <-> Visual Basic .NET | Loop with condition on the beginning

Pascal

while do

Description

while condition do statement;
Used keywords: do while

Input

Note: Here usable statements:
break statement continue statement

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;
.
Visual Basic .NET

while end while

Description

while condition
statements
end while
Used keywords: while end

Input

Note: Here usable statements:
break statement continue statement

Examples

Visual Basic .NET

Loop with condition on the beginning the possible of use:
i=0
while i<10
 i=i+1
end while
x =0
while i<20
 i= i+2
 if i=16 then
    continue while
 end if
 x=x+1 
end while
Pascal

while do

Description

while condition do statement;
Used keywords: do while

Input

Note: Here usable statements:
break statement continue statement

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;
.
Visual Basic .NET

do while loop

Description

do while condition
statements
loop
Used keywords: do while loop

Input

Note: Here usable statements:
break statement continue statement

Examples

Visual Basic .NET

Loop with condition on the beginning the possible of use:
i=0
while i<10
 i=i+1
end while
x =0
while i<20
 i= i+2
 if i=16 then
    continue while
 end if
 x=x+1 
end while
Languages: en hu cz sk