Course of Raku / Essentials / Control flow essentials / Loops / Exercises

Factorial

Problem

Create a program that computes the factorial of 8 using a loop and then prints it.

Example

The program’s behaviour is illustrated by this snippet:

$ raku factorial.raku
40320

Solution

See the solution

Course navigation

Solution: Squares and cubes in a loop   |   Solution: Factorial

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