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
40320Solution
Course navigation
← Solution: Squares and cubes in a loop | Solution: Factorial →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська