algorithms.tutorialhorizon.com
Convert Roman Number to Integer | Algorithms
Given a Roman number, write a program to convert it to Integer. Rules: Roman numerals are usually written in highest to lowest from left to right except for some special cases where left character is less than the right character. for example 'IV' is equivalent to 4 not 'IIII'. In such cases, subtract the left character value from the right character value. 'IV' will be 5-1 = 4, same for 'IX' = 10-1 = 9.