I'm trying to write a program that takes roman numbers and outputs regular arabic numbers.
I'm having trouble with the numbers such as 4 (IV), 9 (IX), 40 (XL),
90 (XC) and so on.
I tried the if statement:
if(rome[i] == 'C' && rome[(i)+1] =='M')
I'm attaching the code so you can see it all,