You are on page 1of 1

3 nov 2022 17:02:21 - RomanNumerals.

sm

Roman numerals
Input data:
arabic 1984

Calculation:

error 0 Value must be in the range 1-3999.

1000 900 500 400 100 90 50 40 10 9 5 4 1


relation
"M" "CM" "D" "CD" "C" "XC" "L" "XL" "X" "IX" "V" "IV" "I"

if arabic 0 arabic 4000


roman description error
else
roman ""
for j 1 , j cols relation , j j 1
while arabic relation
1j
arabic arabic relation
1j
roman concat roman , relation
2j
Result:
roman "MCMLXXXIV"

1/1

You might also like