Course of Raku / Essentials / Functions essentials / More about functions / Exercises

Factorial with multi-functions

Problem

Write a program that computes the factorial using multi-functions. Take the input number from the command line.

Example

The expected result is:

$ raku factorial-with-multi-functions.raku 5
120

Solution

✅ See the solution

Course navigation

← Quiz 3 — Calling multi-functions   |   Solution: Factorial with multi-functions →