Course of Raku / Essentials / Control flow essentials

Loops

Loops are a mechanism to repeat the same action a number of times. In this section, we’ll have an overview of some of the Raku’s constructs that help to organise loops. There will more in the second part of the course, so stay tuned.

For now, let us consider the following items.

Topics in this section

Practice

Complete the quizzes that cover the contents of this section.

Exercises

This section contains 7 exercises. Examine all the topics of this section before doing the coding practice.

  1. Squares and cubes in a loop
  2. Factorial
  3. Fibonacci numbers
  4. Echo until enough
  5. Division via subtraction
  6. FizzBuzz in a loop
  7. Digital stairs

Course navigation

Solution: Leap year   |   Using while

Translations of this page: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська