“anel para loop” Respostas de código

anel para loop

# print numbers from 1 to 10
for x = 1 to 10  see x + nl  next
Joker

anel para loop

# print even numbers from 0 to 10
for x = 0 to 10 step 2
        see x + nl
next
Joker

anel para loop

for identifier=expression to expression [step expression]
        Block of statements
next
Joker

anel para loop

# Dynamic loop
See "Start : " give nStart
See "End   : " give nEnd
See "Step  : " give nStep
For x = nStart to nEnd Step nStep
        see x + nl
Next
Joker

anel para loop

# print even numbers from 10 to 0
for x = 10 to 0 step -2
        see x + nl
next
Joker

anel para em loop

aList = 1:10    # create list contains numbers from 1 to 10
for x in aList  see x + nl  next  # print numbers from 1 to 10
Joker

Respostas semelhantes a “anel para loop”

Perguntas semelhantes a “anel para loop”

Mais respostas relacionadas para “anel para loop” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código