Skip to content
ExamplesEspañolWorkspace →

Loops

Repeat instructions with Mientras, Repetir and Para: count, add up, validate input and play until you guess.

6 examples

  • Times Table

    Prints the multiplication table for the number you choose.

    Beginner
  • Guess the Number

    Guess a secret number from 1 to 100 in seven tries.

    Intermediate
  • Password Check

    Keeps asking for a password until it has at least 8 characters.

    Beginner
  • Countdown

    A rocket launch countdown that ticks second by second.

    Beginner
  • Sum Until Zero

    Adds up the numbers you type until you enter a 0.

    Beginner
  • Drawing Shapes

    Draws a square and a triangle with asterisks.

    Intermediate