Code Kata: Roman Numerals
smaller number in front of a larger number subtraction
all else addition
put only one smaller number in front of a larger number
ones, tens, hundreds and thousands are separate items
The numeral one. II is two, III is three.
The numeral 5. IV is 4, VI is 6, VII is 7, VIII is 8.
The numeral 10. IX is 9, XI is 11, etc.
The numeral 50. XL would be 40.
The numeral 100. C is short for the Latin word Centum,
but Century is eaysier to remember ;-)
The numeral 500.
The numeral 1000.