EXEMPLOS DE LOOP
Bom dia!
Preciso de exemplos de comandos com loop.
For/next,do while,until
Preciso de exemplos de comandos com loop.
For/next,do while,until
texto = "0"
for x = 1 to 10
texto = texto & " - " & x
next
msgbox texto
texto = "0"
do while not x = 10
texto = texto & " - " & x
x = x + 1
loop
msgbox texto
for x = 1 to 10
texto = texto & " - " & x
next
msgbox texto
texto = "0"
do while not x = 10
texto = texto & " - " & x
x = x + 1
loop
msgbox texto
x=1
for x=1 to 10
msgbox x
next x
x=1
for x=10 to 1 step -1
msgbox x
next x
x=1
while x<10
msgbox x
x=x+1
wend
x=1
do
msgbox x
x=x+1
loop until x<10
for x=1 to 10
msgbox x
next x
x=1
for x=10 to 1 step -1
msgbox x
next x
x=1
while x<10
msgbox x
x=x+1
wend
x=1
do
msgbox x
x=x+1
loop until x<10
Tópico encerrado , respostas não são mais permitidas