Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 385 Bytes

Exercise1.md

File metadata and controls

29 lines (26 loc) · 385 Bytes

Roman Numerals

Write a function toRoman(number), which accepts number parameter and returns its representation in roman numerals

Examples

   1 ➔ I
   2 ➔ II
   3 ➔ III
   4 ➔ IV
   5 ➔ V
   9 ➔ IX
  21 ➔ XXI
  50 ➔ L
 100 ➔ C
 500 ➔ D
1000 ➔ M

Symbol Values

I 1 
V 5 
X 10 
L 50
C 100
D 500 
M 1000