FreeBASIC <-> Visual Basic .NET | Elöltesztelő ciklus

FreeBASIC

do while loop

Leírás

do while condition
statements
loop
Használt kulcsszavak: do while loop

Bemenet

Megjegyzés: Itt használható utasítások:
Megszakító utasítás Következő iteráció elindítása

Példaprogramok

FreeBASIC

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

while end while

Leírás

while condition
statements
end while
Használt kulcsszavak: while end

Bemenet

Megjegyzés: Itt használható utasítások:
Megszakító utasítás Következő iteráció elindítása

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
FreeBASIC

while wend

Leírás

while condition
statements
 wend
Használt kulcsszavak: while wend

Bemenet

Megjegyzés: Itt használható utasítások:
Megszakító utasítás Következő iteráció elindítása

Példaprogramok

FreeBASIC

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

do while loop

Leírás

do while condition
statements
loop
Használt kulcsszavak: do while loop

Bemenet

Megjegyzés: Itt használható utasítások:
Megszakító utasítás Következő iteráció elindítása

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
Más nyelveken: en hu cz sk