Basic <-> Visual Basic .NET | Elöltesztelő ciklus
Basic  Használt kulcsszavak: do  while  loop 
do while loop
Leírás
do while condition
statements
loop
Bemenet
- condition - Logikai érték Feltétel lehet akármilyen kifejezés
 - statements - Utasítások
 
Példaprogramok
Basic
Elöltesztelő ciklus lehetséges használata: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
.
Visual Basic .NET  Használt kulcsszavak: while  end 
while end while
Leírás
while condition
statements
end while
Bemenet
- condition - Logikai érték Feltétel lehet akármilyen kifejezés
 - statements - Utasítások
 
Példaprogramok
Visual Basic .NET
Elöltesztelő ciklus lehetséges használata: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
Basic  Használt kulcsszavak: while  wend 
while wend
Leírás
while condition
statements
 wend
Bemenet
- condition - Logikai érték Feltétel lehet akármilyen kifejezés
 - statements - Utasítások
 
Példaprogramok
Basic
Elöltesztelő ciklus lehetséges használata: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
.
Visual Basic .NET  Használt kulcsszavak: do  while  loop 
do while loop
Leírás
do while condition
statements
loop
Bemenet
- condition - Logikai érték Feltétel lehet akármilyen kifejezés
 - statements - Utasítások
 
Példaprogramok
Visual Basic .NET
Elöltesztelő ciklus lehetséges használata: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
Elöltesztelő ciklus más programozási nyelven:
Különbségek: