السلام عليكم
لو تكرمتوا ياجماعة ابغا حل لهذا السؤال ضرووووري لاني تهت فيه صراحة وجزاكم الله الف خير
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