“anillo para bucle” Código de respuesta

anillo para bucle

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

anillo para bucle

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

anillo para bucle

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

anillo para bucle

# 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

anillo para bucle

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

anillo para en bucle

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

Respuestas similares a “anillo para bucle”

Preguntas similares a “anillo para bucle”

Más respuestas relacionadas con “anillo para bucle” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código