هذا البرنامج أنا سويته بس أحيان يطلع صح و بعض الأحيان يطلع غلط
write a program that reads a number in roman type then converting it to an english type. (in roman numbers replaced with characters.)
note:
- read number in a string.
-in roman: M=1000
d=500
c=100
l=50
x=5
i=1
-the letter case is not important(m=m).
-any character not in this range should be ignored in conversion.
:output
please enter number in roman: Cdmiu
after conversion number=1661