If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Expressing an algorithm


The following algorithm displays a sequence of 10 odd squares:
  • Start by setting n to 1.
  • Repeat 10 times:
    • Multiply n by itself and display the result.
    • Add 2 to n.
Which of these correctly expresses that algorithm in pseudocode?
Choose 1 answer: