Main content
Expressing an algorithm
Problem
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
.
- Multiply
Which of these correctly expresses that algorithm in pseudocode?
Related content