رد: [cpcs 202 - برمجة 1] لديك سؤال , واجبات , شيء غير مفهوم ,,, تفضل هنا , موضوع مفيد
هذا البرنامج أنا سويته بس أحيان يطلع صح و بعض الأحيان يطلع غلط
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
التعديل الأخير تم بواسطة زهرة البنفسج ; 04-01-2010 الساعة 07:49 PM.
|