Course of Raku / Essentials / Control flow essentials / Loops

Exercises: Loops

This section contains 7 exercises.

  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

Refresh your knowledge

Refer to the contents of this section to find the answers if needed.

  • Loops
    • Using while
    • Using until
    • Using repeat
    • while and until as statement modifiers
    • Three-statement loop
    • Infinite loops
    • for loops
    • Topic variable
    • Postfix form of for

Course navigation

← Squares and cubes in a loop

Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська

The Complete Course of the Raku Programming Language

About the course · GitHub

Free and open source · Written by Andrew Shitov · Supported by The Perl & Raku Foundation

© 2021–2026 by Andrew Shitov