Course of Raku / Addendum 🆕 / Bringing it together / Mixed mini-projects / Exercises

Roman numerals

Problem

Convert the number 1994 to Roman numerals (the answer is MCMXCIV) and print it. Build it up from the standard value–symbol table, largest first.

Example

The program prints:

MCMXCIV

Solution

See the solution

Course navigation

Mixed mini-projects   |   Solution: Roman numerals