Task
Define a function int_to_roman that takes one parameter:
|
|
|
|
|
|
|
|
|
The integer should be between 1 and 4999 inclusive.
|
When called, the function should return the input number converted to a roman numeral.
Remember to meet the following constraints of roman numerals:
- You can only use the Roman numerals I, V, X, L, C, D and M, no other characters or notation is allowed.
- You must follow the traditional rule of Roman numeral formation where smaller numerals are placed before larger numerals to indicate subtraction. For example, 4 is represented as IV, not IIII.