Course of Raku / Essentials / Creating and calling functions / Exercises

Recursive factorial

Problem

Create a program that uses recursion to compute the factorial of 10.

Example

$ raku recursive-factorial.raku
3628800

Solution

See the solution

Next exercise

💪 Interval function

Course navigation

Associative data types / Interpolating hashes   |   More about functions

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