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

Jeżeli jesteś za filtrem sieci web, prosimy, upewnij się, że domeny *.kastatic.org i *.kasandbox.org są odblokowane.

Główna zawartość

Jak opisać algorytm?

Zadanie

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?
Wybierz 1 odpowiedź:
Nie wiesz, jak rozwiązać to zadanie?
Nie wiesz, jak rozwiązać to zadanie?